mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-06 22:07:56 +03:00
Windows: Implement reset menu command
A bit hacky but works.
This commit is contained in:
+7
-7
@@ -93,16 +93,16 @@ int main(int argc, char *argv[])
|
||||
EM_ASM( xsystem35.shell.windowSizeChanged(); );
|
||||
#endif
|
||||
|
||||
nact->mainloop();
|
||||
bool restart = true;
|
||||
while (restart) {
|
||||
restart = nact->mainloop();
|
||||
delete nact;
|
||||
if (restart)
|
||||
nact = NACT::create(game_id, font_file, playlist);
|
||||
}
|
||||
|
||||
SDL_DestroyWindow(g_window);
|
||||
SDL_Quit();
|
||||
|
||||
// system3 開放
|
||||
delete nact;
|
||||
|
||||
// MCI 開放
|
||||
//release_mci();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user