FileDownloader now works in Emscripten

This commit is contained in:
Yousef Khadadeh 2025-10-09 13:04:39 +03:00
parent dc834f84f8
commit f972fd5024
5 changed files with 79 additions and 27 deletions

View file

@ -391,9 +391,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv) {
init_logs(mS);
#ifndef __EMSCRIPTEN__
FileDownloader::init();
#endif
#ifdef NDEBUG
try {
@ -779,9 +777,7 @@ void SDL_AppQuit(void *appstate, SDL_AppResult result) {
delete (&mS);
#ifndef __EMSCRIPTEN__
FileDownloader::cleanup();
#endif
SDL_Quit();
}