From 7d536d52406c87c0102afed2d620d6b07cc1ca00 Mon Sep 17 00:00:00 2001
From: Pierre Wendling <[EMAIL REDACTED]>
Date: Mon, 14 Nov 2022 16:16:21 -0500
Subject: [PATCH] N3DS: Put `SDL_Log.txt` in the proper directory.
The homebrew "user" directory should be `/3ds/`.
To avoid ambiguity, `sdmc:` is specified.
---
src/SDL_log.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/SDL_log.c b/src/SDL_log.c
index 66191d2b413b..c01e31d8a917 100644
--- a/src/SDL_log.c
+++ b/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 && \