mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
fix exiting not terminating emscripten runtime
This commit is contained in:
parent
1f8a85615c
commit
2d27a8c3e2
@ -39,7 +39,7 @@ endif
|
||||
#if you compile with SDL2 flag add this Emscripten flag "-s USE_SDL=2" to LDFLAGS:
|
||||
|
||||
LIBS := -s USE_SDL=2 -s USE_ZLIB=1
|
||||
LDFLAGS := -L. --no-heap-copy -s USE_ZLIB=1 -s TOTAL_MEMORY=$(MEMORY) \
|
||||
LDFLAGS := -L. --no-heap-copy -s USE_ZLIB=1 -s TOTAL_MEMORY=$(MEMORY) -s NO_EXIT_RUNTIME=0 \
|
||||
-s EXPORTED_FUNCTIONS="['_main', '_malloc', '_cmd_savefiles', '_cmd_save_state', '_cmd_load_state', '_cmd_take_screenshot']" \
|
||||
--js-library emscripten/library_rwebaudio.js \
|
||||
--js-library emscripten/library_rwebcam.js
|
||||
|
@ -57,7 +57,7 @@ static void emscripten_mainloop(void)
|
||||
return;
|
||||
|
||||
main_exit(NULL);
|
||||
exit(0);
|
||||
emscripten_force_exit(0);
|
||||
}
|
||||
|
||||
void cmd_savefiles(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user