diff --git a/olcPixelGameEngine.h b/olcPixelGameEngine.h index 93c1c64d..06fc7aeb 100644 --- a/olcPixelGameEngine.h +++ b/olcPixelGameEngine.h @@ -511,6 +511,13 @@ int main() #endif #endif +// File resolver for runtime FS access of emscripten builds +#if defined(__EMSCRIPTEN__) +#include +#define FILE_RESOLVE(url, file) emscripten_wget(url, file); emscripten_sleep(0) +#else +#define FILE_RESOLVE(url, file) +#endif // O------------------------------------------------------------------------------O // | PLATFORM-SPECIFIC DEPENDENCIES |