Make user data storage persistent on Emscripten

This commit is contained in:
ROllerozxa 2026-06-23 00:23:33 +02:00
commit ac9f350134

View file

@ -25,6 +25,7 @@ endif()
if(EMSCRIPTEN)
set(SDL_PTHREADS ON CACHE BOOL "" FORCE)
set(SDL_EMSCRIPTEN_PERSISTENT_PATH "/storage" CACHE STRING "" FORCE)
endif()
add_definitions(-DSDL_LEAN_AND_MEAN=1)