mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 13:20:43 +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:
|
#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
|
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']" \
|
-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_rwebaudio.js \
|
||||||
--js-library emscripten/library_rwebcam.js
|
--js-library emscripten/library_rwebcam.js
|
||||||
|
@ -57,7 +57,7 @@ static void emscripten_mainloop(void)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
main_exit(NULL);
|
main_exit(NULL);
|
||||||
exit(0);
|
emscripten_force_exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmd_savefiles(void)
|
void cmd_savefiles(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user