mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
emscripten: Dispatch hideLoading JS function before starting the mainloop
This commit is contained in:
parent
11cd2eb6ce
commit
f8213e73fa
1 changed files with 3 additions and 0 deletions
|
@ -538,6 +538,9 @@ SYMBOL_EXPORT int libsuperderpy_run(struct Game* game) {
|
|||
PauseExecution(game);
|
||||
}
|
||||
emscripten_set_main_loop_arg(libsuperderpy_emscripten_mainloop, game, 0, false);
|
||||
EM_ASM({
|
||||
if (Module.hideLoading) Module.hideLoading();
|
||||
});
|
||||
return 0;
|
||||
#else
|
||||
while (libsuperderpy_mainloop(game)) {}
|
||||
|
|
Loading…
Reference in a new issue