mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-30 00:24:15 +01:00
Make changes to work with latest libnx
(cherry picked from commit 1bebc6580455b0c60ceb6e5589c5dfbcc59e3a98)
This commit is contained in:
parent
2cb78030be
commit
1f78277254
@ -2020,7 +2020,7 @@ ftp_init(void)
|
|||||||
|
|
||||||
/* get address to listen on */
|
/* get address to listen on */
|
||||||
serv_addr.sin_family = AF_INET;
|
serv_addr.sin_family = AF_INET;
|
||||||
#if defined(_3DS) || defined(SWITCH)
|
#if defined(_3DS) || defined(__SWITCH__)
|
||||||
serv_addr.sin_addr.s_addr = gethostid();
|
serv_addr.sin_addr.s_addr = gethostid();
|
||||||
serv_addr.sin_port = htons(LISTEN_PORT);
|
serv_addr.sin_port = htons(LISTEN_PORT);
|
||||||
#else
|
#else
|
||||||
|
@ -105,8 +105,8 @@ main(int argc,
|
|||||||
gfxInitDefault();
|
gfxInitDefault();
|
||||||
gfxSet3D(false);
|
gfxSet3D(false);
|
||||||
sdmcWriteSafe(false);
|
sdmcWriteSafe(false);
|
||||||
#elif defined(SWITCH)
|
|
||||||
/* initialize needed Switch services */
|
/* initialize needed Switch services */
|
||||||
|
#elif defined(__SWITCH__)
|
||||||
//gfxInitResolution(644, 480);
|
//gfxInitResolution(644, 480);
|
||||||
nifmInitialize();
|
nifmInitialize();
|
||||||
gfxInitDefault();
|
gfxInitDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user