mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 02:19:45 +01:00
PHYSFS_mkdir uses the mount location when a system is mounted
This commit is contained in:
parent
ee610238b5
commit
d057c6a348
1 changed files with 4 additions and 6 deletions
|
@ -75,18 +75,16 @@ int FILESYSTEM_init(char *argvZero, char* baseDir, char *assetsPath)
|
|||
printf("Base directory: %s\n", output);
|
||||
|
||||
/* Create save directory */
|
||||
strcpy(saveDir, output);
|
||||
strcat(saveDir, "saves");
|
||||
strcpy(saveDir, "saves");
|
||||
strcat(saveDir, PHYSFS_getDirSeparator());
|
||||
PHYSFS_mkdir(saveDir);
|
||||
printf("Save directory: %s\n", saveDir);
|
||||
printf("Save directory: %s%s\n", output, saveDir);
|
||||
|
||||
/* Create level directory */
|
||||
strcpy(levelDir, output);
|
||||
strcat(levelDir, "levels");
|
||||
strcpy(levelDir, "levels");
|
||||
strcat(levelDir, PHYSFS_getDirSeparator());
|
||||
mkdirResult |= PHYSFS_mkdir(levelDir);
|
||||
printf("Level directory: %s\n", levelDir);
|
||||
printf("Level directory: %s%s\n", output, levelDir);
|
||||
|
||||
/* We didn't exist until now, migrate files! */
|
||||
if (mkdirResult == 0)
|
||||
|
|
Loading…
Reference in a new issue