diff options
Diffstat (limited to '')
-rw-r--r-- | src/skel/win/win.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp index 627bdb0f..81fe109b 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 } /* |