mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 16:15:28 +00:00
N3DS: Move gfxInit and hidInit from main to video.
This commit is contained in:
parent
266014faa7
commit
83ec6062af
|
@ -49,15 +49,11 @@ N3DS_Init(void)
|
|||
{
|
||||
osSetSpeedupEnable(true);
|
||||
romfsInit();
|
||||
gfxInit(GSP_RGBA8_OES, GSP_RGBA8_OES, false);
|
||||
hidInit();
|
||||
}
|
||||
|
||||
SDL_FORCE_INLINE void
|
||||
N3DS_Quit(void)
|
||||
{
|
||||
hidExit();
|
||||
gfxExit();
|
||||
romfsExit();
|
||||
}
|
||||
|
||||
|
|
|
@ -95,6 +95,9 @@ VideoBootStrap N3DS_bootstrap = { N3DSVID_DRIVER_NAME, "N3DS Video Driver", N3DS
|
|||
static int
|
||||
N3DS_VideoInit(_THIS)
|
||||
{
|
||||
gfxInit(GSP_RGBA8_OES, GSP_RGBA8_OES, false);
|
||||
hidInit();
|
||||
|
||||
AddN3DSDisplay(GFX_TOP);
|
||||
AddN3DSDisplay(GFX_BOTTOM);
|
||||
|
||||
|
@ -139,7 +142,9 @@ N3DS_VideoQuit(_THIS)
|
|||
{
|
||||
N3DS_SwkbQuit();
|
||||
N3DS_QuitTouch();
|
||||
return;
|
||||
|
||||
hidExit();
|
||||
gfxExit();
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue