mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-14 14:34:10 +00:00
fixed CFileMgr somewhat; still issues when loading saves
This commit is contained in:
parent
9703ef9b59
commit
3472a614ae
7 changed files with 22 additions and 21 deletions
|
@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue