mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-14 06:18:49 +00:00
N3DS: Put SDL_Log.txt in the proper directory.
The homebrew "user" directory should be `/3ds/`. To avoid ambiguity, `sdmc:` is specified.
This commit is contained in:
committed by
Sam Lantinga
parent
bf4f9aaa63
commit
7d536d5240
@@ -488,7 +488,7 @@ SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
|
|||||||
#elif defined(__3DS__)
|
#elif defined(__3DS__)
|
||||||
{
|
{
|
||||||
FILE *pFile;
|
FILE *pFile;
|
||||||
pFile = fopen ("/SDL_Log.txt", "a");
|
pFile = fopen("sdmc:/3ds/SDL_Log.txt", "a");
|
||||||
fprintf(pFile, "%s: %s\n", SDL_priority_prefixes[priority], message);
|
fprintf(pFile, "%s: %s\n", SDL_priority_prefixes[priority], message);
|
||||||
fclose(pFile);
|
fclose(pFile);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user