fix emscripten

This commit is contained in:
2026-04-15 23:52:52 +02:00
parent 0faa605ad9
commit 294e665b11
2 changed files with 12 additions and 4 deletions

View File

@@ -58,9 +58,13 @@ Director::Director(int argc, const char *argv[]) {
createSystemFolder("jailgames/coffee_crisis_debug");
#endif
// Inicializa el sistema de recursos (pack + fallback)
// Inicializa el sistema de recursos (pack + fallback).
// En wasm siempre se usa filesystem (MEMFS) porque el propio --preload-file
// de emscripten ya empaqueta data/ — no hay resources.pack.
{
#ifdef RELEASE_BUILD
#if defined(__EMSCRIPTEN__)
const bool enable_fallback = true;
#elif defined(RELEASE_BUILD)
const bool enable_fallback = false;
#else
const bool enable_fallback = true;