Add: [Emscripten] Support for bootstrapping
This commit is contained in:
@@ -615,7 +615,11 @@ void VideoDriver_SDL_Base::LoopOnce()
|
||||
/* In effect, the game ends here. As emscripten_set_main_loop() caused
|
||||
* the stack to be unwound, the code after MainLoop() in
|
||||
* openttd_main() is never executed. */
|
||||
EM_ASM(if (window["openttd_exit"]) openttd_exit());
|
||||
if (_game_mode == GM_BOOTSTRAP) {
|
||||
EM_ASM(if (window["openttd_bootstrap_reload"]) openttd_bootstrap_reload());
|
||||
} else {
|
||||
EM_ASM(if (window["openttd_exit"]) openttd_exit());
|
||||
}
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user