mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-06 22:07:56 +03:00
Emscripten: Restart game instead of exiting
The same behavior as xsystem35.
This commit is contained in:
@@ -146,6 +146,10 @@ int NACT::mainloop()
|
||||
|
||||
void NACT::quit(int code)
|
||||
{
|
||||
#ifdef __EMSCRIPTEN__
|
||||
if (code >= 0)
|
||||
code = NACT_RESTART; // Restarts the game instead of exiting.
|
||||
#endif
|
||||
exit_code = code;
|
||||
terminate = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user