mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-04 20:15:09 +01:00
Update for latest libnx gfx/console changes
This commit is contained in:
parent
97081b86d4
commit
a910da0799
@ -217,13 +217,14 @@ console_render(void)
|
|||||||
print_tcp_table();
|
print_tcp_table();
|
||||||
#endif
|
#endif
|
||||||
/* flush framebuffer */
|
/* flush framebuffer */
|
||||||
gfxFlushBuffers();
|
|
||||||
#ifdef _3DS
|
#ifdef _3DS
|
||||||
|
gfxFlushBuffers();
|
||||||
gspWaitForVBlank();
|
gspWaitForVBlank();
|
||||||
#else
|
|
||||||
gfxWaitForVsync();
|
|
||||||
#endif
|
|
||||||
gfxSwapBuffers();
|
gfxSwapBuffers();
|
||||||
|
#endif
|
||||||
|
#ifdef __SWITCH__
|
||||||
|
consoleUpdate(NULL);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,8 +35,8 @@ loop(loop_status_t (*callback)(void))
|
|||||||
#elif defined(__SWITCH__)
|
#elif defined(__SWITCH__)
|
||||||
while(appletMainLoop())
|
while(appletMainLoop())
|
||||||
{
|
{
|
||||||
status = callback();
|
|
||||||
console_render();
|
console_render();
|
||||||
|
status = callback();
|
||||||
if(status != LOOP_CONTINUE)
|
if(status != LOOP_CONTINUE)
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@ -107,9 +107,7 @@ main(int argc,
|
|||||||
sdmcWriteSafe(false);
|
sdmcWriteSafe(false);
|
||||||
/* initialize needed Switch services */
|
/* initialize needed Switch services */
|
||||||
#elif defined(__SWITCH__)
|
#elif defined(__SWITCH__)
|
||||||
//gfxInitResolution(644, 480);
|
|
||||||
nifmInitialize();
|
nifmInitialize();
|
||||||
gfxInitDefault();
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* initialize console subsystem */
|
/* initialize console subsystem */
|
||||||
@ -177,7 +175,7 @@ log_fail:
|
|||||||
loop(wait_for_b);
|
loop(wait_for_b);
|
||||||
|
|
||||||
/* deinitialize Switch services */
|
/* deinitialize Switch services */
|
||||||
gfxExit();
|
consoleExit(NULL);
|
||||||
nifmExit();
|
nifmExit();
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user