Remove redundant getDirSeparator() calls in init()

PHYSFS_getDirSeparator() already gets called and stored in pathSep at
the top of FILESYSTEM_init(). So clearly, two people worked on this
function and forgot that both pieces of code existed at the same time
(or it was one person independently forgetting both).
This commit is contained in:
Misa authored and Ethan Lee committed 2021-04-05 16:39:37 -04:00
1 parent 34ec943b5c
commit a11920e1a9
1 file changed
+2 -2
+2 -2
View File
@@ -94,7 +94,7 @@ int FILESYSTEM_init(char *argvZero, char* baseDir, char *assetsPath)
SDL_snprintf(saveDir, sizeof(saveDir), "%s%s%s",
output,
"saves",
PHYSFS_getDirSeparator()
pathSep
);
printf("Save directory: %s\n", saveDir);
@@ -102,7 +102,7 @@ int FILESYSTEM_init(char *argvZero, char* baseDir, char *assetsPath)
SDL_snprintf(levelDir, sizeof(levelDir), "%s%s%s",
output,
"levels",
PHYSFS_getDirSeparator()
pathSep
);
printf("Level directory: %s\n", levelDir);