| commit | 267e681a0be6d351020060824da9e2cd48d8fc80 | [log] [tgz] |
|---|---|---|
| author | Ryan C. Gordon <icculus@icculus.org> | Mon Feb 09 21:35:14 2026 -0500 |
| committer | Ryan C. Gordon <icculus@icculus.org> | Mon Feb 09 21:39:02 2026 -0500 |
| tree | 266199e9016354044a2eeabb1426f5fbfdc3b36b | |
| parent | 9f8c70713a13f3bb05415f7a40b0dc501f936129 [diff] |
emscripten: drag-and-drop fixes. 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.
Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators.
You can find the latest release and additional information at: https://www.libsdl.org/
Installation instructions and a quick introduction is available in INSTALL.md
This library is distributed under the terms of the zlib license, available in LICENSE.txt.
Enjoy!
Sam Lantinga (slouken@libsdl.org)