Codechange: [Emscripten] Improve syncfs synchronisation on exit/abort

This commit is contained in:
glx22
2023-07-06 18:18:03 +02:00
committed by Loïc Guilloux
parent 75d3dc0a19
commit 3d1c4a8589
3 changed files with 12 additions and 12 deletions

View File

@@ -118,7 +118,6 @@ void UserErrorI(const std::string &str)
/* 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_syncfs"]) openttd_syncfs());
EM_ASM(if (window["openttd_abort"]) openttd_abort());
#endif