mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-16 03:08:01 +00:00
FS.mkdir() will throw a javascript exception if the scratch directory already
exists, so catch/ignore that.
Wrap the rest of the scratch i/o in a try/catch block; the event will only
send if everything works out.
Wrap some calls from Javascript to the C runtime's free() in an
EMSCRIPTEN_KEEPALIVE function, so that the compiler doesn't optimize the
function out and crash at runtime.
Fixes #14999.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| emscripten | ||
| gdk | ||
| generic | ||
| ios | ||
| n3ds | ||
| ngage | ||
| ps2 | ||
| psp | ||
| windows | ||
| SDL_main_callbacks.c | ||
| SDL_main_callbacks.h | ||
| SDL_runapp.c | ||