mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 18:40:49 +00:00
Add networking support to libnx
This commit is contained in:
parent
4ad6a5f683
commit
9be2321c02
@ -35,9 +35,9 @@ HAVE_STATIC_VIDEO_FILTERS = 1
|
|||||||
HAVE_STATIC_AUDIO_FILTERS = 1
|
HAVE_STATIC_AUDIO_FILTERS = 1
|
||||||
HAVE_MENU = 1
|
HAVE_MENU = 1
|
||||||
HAVE_RUNAHEAD = 1
|
HAVE_RUNAHEAD = 1
|
||||||
|
HAVE_NETWORKING = 1
|
||||||
|
|
||||||
# RetroArch libnx useful flags
|
# RetroArch libnx useful flags
|
||||||
HAVE_OVERLAY = 0
|
|
||||||
HAVE_THREADS = 1
|
HAVE_THREADS = 1
|
||||||
HAVE_PTHREADS = 1
|
HAVE_PTHREADS = 1
|
||||||
HAVE_FREETYPE = 0
|
HAVE_FREETYPE = 0
|
||||||
@ -55,6 +55,8 @@ ifeq ($(HAVE_OPENGL), 1)
|
|||||||
HAVE_ZARCH = 0
|
HAVE_ZARCH = 0
|
||||||
HAVE_XMB = 0
|
HAVE_XMB = 0
|
||||||
HAVE_STRIPES = 0
|
HAVE_STRIPES = 0
|
||||||
|
|
||||||
|
HAVE_OVERLAY = 1
|
||||||
else
|
else
|
||||||
HAVE_RGUI = 1
|
HAVE_RGUI = 1
|
||||||
|
|
||||||
@ -65,9 +67,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
include Makefile.common
|
include Makefile.common
|
||||||
BLACKLIST :=
|
BLACKLIST := $(LIBRETRO_COMM_DIR)/net/net_ifinfo.o
|
||||||
#BLACKLIST += input/input_overlay.o
|
|
||||||
#BLACKLIST += tasks/task_overlay.o
|
|
||||||
|
|
||||||
OBJ := $(filter-out $(BLACKLIST),$(OBJ))
|
OBJ := $(filter-out $(BLACKLIST),$(OBJ))
|
||||||
|
|
||||||
|
@ -230,7 +230,7 @@ static bool path_mkdir_error(int ret)
|
|||||||
{
|
{
|
||||||
#if defined(VITA)
|
#if defined(VITA)
|
||||||
return (ret == SCE_ERROR_ERRNO_EEXIST);
|
return (ret == SCE_ERROR_ERRNO_EEXIST);
|
||||||
#elif defined(PSP) || defined(_3DS) || defined(WIIU)
|
#elif defined(PSP) || defined(_3DS) || defined(WIIU) || defined(SWITCH)
|
||||||
return (ret == -1);
|
return (ret == -1);
|
||||||
#else
|
#else
|
||||||
return (ret < 0 && errno == EEXIST);
|
return (ret < 0 && errno == EEXIST);
|
||||||
|
@ -184,7 +184,7 @@ static bool natt_open_port(struct natt_status *status,
|
|||||||
bool natt_open_port_any(struct natt_status *status,
|
bool natt_open_port_any(struct natt_status *status,
|
||||||
uint16_t port, enum socket_protocol proto)
|
uint16_t port, enum socket_protocol proto)
|
||||||
{
|
{
|
||||||
#if !defined(HAVE_SOCKET_LEGACY) && !defined(WIIU)
|
#if !defined(HAVE_SOCKET_LEGACY) && !defined(WIIU) && !defined(SWITCH)
|
||||||
size_t i;
|
size_t i;
|
||||||
char port_str[6];
|
char port_str[6];
|
||||||
struct net_ifinfo list;
|
struct net_ifinfo list;
|
||||||
|
@ -93,7 +93,7 @@ static enum msg_hash_enums new_type = MSG_UNKNOWN;
|
|||||||
* function pointer callback functions that don't necessarily
|
* function pointer callback functions that don't necessarily
|
||||||
* call each other. */
|
* call each other. */
|
||||||
|
|
||||||
#if !defined(HAVE_SOCKET_LEGACY) && !defined(WIIU)
|
#if !defined(HAVE_SOCKET_LEGACY) && !defined(WIIU) && !defined(SWITCH)
|
||||||
#include <net/net_ifinfo.h>
|
#include <net/net_ifinfo.h>
|
||||||
|
|
||||||
static int menu_displaylist_parse_network_info(menu_displaylist_info_t *info)
|
static int menu_displaylist_parse_network_info(menu_displaylist_info_t *info)
|
||||||
@ -4694,7 +4694,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
|||||||
break;
|
break;
|
||||||
case DISPLAYLIST_NETWORK_INFO:
|
case DISPLAYLIST_NETWORK_INFO:
|
||||||
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
|
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
|
||||||
#if defined(HAVE_NETWORKING) && !defined(HAVE_SOCKET_LEGACY) && !defined(WIIU)
|
#if defined(HAVE_NETWORKING) && !defined(HAVE_SOCKET_LEGACY) && !defined(WIIU) && !defined(SWITCH)
|
||||||
menu_displaylist_parse_network_info(info);
|
menu_displaylist_parse_network_info(info);
|
||||||
#endif
|
#endif
|
||||||
info->need_push = true;
|
info->need_push = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user