Commit 8e4fa54e authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Readd libnx port again - courtesy of m4xw

parent 6f27e712
Pipeline #45594 passed with stages
in 12 minutes and 44 seconds
......@@ -104,7 +104,7 @@ android-x86_64:
################################### CONSOLES #################################
# Nintendo Switch
#libretro-build-libnx-aarch64:
# extends:
# - .libretro-libnx-static-retroarch-master
# - .core-defs
libretro-build-libnx-aarch64:
extends:
- .libretro-libnx-static-retroarch-master
- .core-defs
......@@ -63,8 +63,10 @@ bool NaomiNetwork::init()
#endif
if (settings.network.ActAsServer)
{
miniupnp.Init();
#ifdef ENABLE_MODEM
miniupnp.Init();
miniupnp.AddPortMapping(SERVER_PORT, true);
#endif // ENABLE_MODEM
return createBeaconSocket() && createServerSocket();
}
else
......@@ -482,8 +484,10 @@ void NaomiNetwork::shutdown()
void NaomiNetwork::terminate()
{
shutdown();
#ifdef ENABLE_MODEM
if (settings.network.ActAsServer)
miniupnp.Term();
#endif // ENABLE_MODEM
if (beacon_sock != INVALID_SOCKET)
{
closesocket(beacon_sock);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment