added persistent personal game data for Emscripten platform
[rocksndiamonds.git] / src / libgame / setup.c
index a135b0d58cf694259d16568d5f4d45dd1aee30f3..dc470a814a741ae88722af47959c47f23489492c 100644 (file)
@@ -1511,6 +1511,8 @@ char *getHomeDir(void)
     if (!SUCCEEDED(SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, 0, dir)))
       strcpy(dir, ".");
   }
+#elif defined(PLATFORM_EMSCRIPTEN)
+  dir = "/persistent";
 #elif defined(PLATFORM_UNIX)
   if (dir == NULL)
   {