mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-23 00:12:51 +02:00
Emscripten: Fix a crash from SDL2 by disabling asserts
Clearly not ideal.
This commit is contained in:
@@ -126,6 +126,12 @@ namespace Platform
|
||||
void SetupCrt()
|
||||
{
|
||||
EM_ASM({
|
||||
// If we don't castrate assert here, we get a crash from within the emscripten port of
|
||||
// SDL2 having to do with registering a callback that reports to the main thread, ever
|
||||
// since this "fix" https://github.com/emscripten-core/emscripten/pull/19691/files
|
||||
// TODO: Review later.
|
||||
assert = () => {};
|
||||
|
||||
let ddir = UTF8ToString($0);
|
||||
let prefix = ddir + '/';
|
||||
let shouldSyncFs = Module.cwrap(
|
||||
|
Reference in New Issue
Block a user