Fix: [Emscripten] config not saved on exit game (#11248)
When changing a Game Option and pressing Exit Game, the changes were not actually stored. This because the post-mainloop code was never executed for Emscripten.
This commit is contained in:
@@ -607,6 +607,9 @@ void VideoDriver_SDL_Base::LoopOnce()
|
||||
* normally done at the end of the main loop for non-Emscripten.
|
||||
* After that, Emscripten just halts, and the HTML shows a nice
|
||||
* "bye, see you next time" message. */
|
||||
extern void PostMainLoop();
|
||||
PostMainLoop();
|
||||
|
||||
emscripten_cancel_main_loop();
|
||||
emscripten_exit_pointerlock();
|
||||
/* In effect, the game ends here. As emscripten_set_main_loop() caused
|
||||
|
||||
Reference in New Issue
Block a user