Ver Fonte

N3DS: Put `SDL_Log.txt` in the proper directory.

The homebrew "user" directory should be `/3ds/`.
To avoid ambiguity, `sdmc:` is specified.
Pierre Wendling há 2 anos atrás
pai
commit
7d536d5240
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      src/SDL_log.c

+ 3 - 3
src/SDL_log.c

@@ -487,10 +487,10 @@ SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
     }
 #elif defined(__3DS__)
     {
-        FILE*        pFile;
-        pFile = fopen ("/SDL_Log.txt", "a");
+        FILE *pFile;
+        pFile = fopen("sdmc:/3ds/SDL_Log.txt", "a");
         fprintf(pFile, "%s: %s\n", SDL_priority_prefixes[priority], message);
-        fclose (pFile);
+        fclose(pFile);
     }
 #endif
 #if HAVE_STDIO_H && \