Emscripten: Expose sys_restart() function

This commit is contained in:
kichikuou
2022-06-26 14:56:23 +09:00
parent b2907a9de8
commit 578a8bf095
5 changed files with 31 additions and 12 deletions
+2 -2
View File
@@ -175,10 +175,10 @@ bool NACT::handle_platform_event(const SDL_Event& e)
save_screenshot(ags);
break;
case ID_RESTART:
terminate = restart_after_terminate = true;
quit(true);
break;
case ID_EXIT:
terminate = true;
quit(false);
break;
case ID_SCREEN_WINDOW:
SDL_SetWindowFullscreen(g_window, 0);