summaryrefslogtreecommitdiffstats
path: root/src/skel
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-13 01:12:37 +0200
committeraap <aap@papnet.eu>2019-06-13 01:12:37 +0200
commit3472a614ae3b4ecf7f49516a97d387761f0f5820 (patch)
tree27f6bd454211d0ea8c88b34915ee22ef7e9c05a0 /src/skel
parentimplemented CutsceneObject; little fixes (diff)
downloadre3-3472a614ae3b4ecf7f49516a97d387761f0f5820.tar
re3-3472a614ae3b4ecf7f49516a97d387761f0f5820.tar.gz
re3-3472a614ae3b4ecf7f49516a97d387761f0f5820.tar.bz2
re3-3472a614ae3b4ecf7f49516a97d387761f0f5820.tar.lz
re3-3472a614ae3b4ecf7f49516a97d387761f0f5820.tar.xz
re3-3472a614ae3b4ecf7f49516a97d387761f0f5820.tar.zst
re3-3472a614ae3b4ecf7f49516a97d387761f0f5820.zip
Diffstat (limited to '')
-rw-r--r--src/skel/win/win.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp
index c26855eb..3ca4aa5d 100644
--- a/src/skel/win/win.cpp
+++ b/src/skel/win/win.cpp
@@ -191,6 +191,7 @@ void _psCreateFolder(LPCSTR path)
*/
const char *_psGetUserFilesFolder()
{
+#ifdef USE_MY_DOCUMENTS
HKEY hKey = NULL;
static CHAR szUserFiles[256];
@@ -221,6 +222,12 @@ const char *_psGetUserFilesFolder()
strcpy(szUserFiles, "data");
return szUserFiles;
+#else
+ static CHAR szUserFiles[256];
+ strcpy(szUserFiles, "userfiles");
+ _psCreateFolder(szUserFiles);
+ return szUserFiles;
+#endif
}
/*