From a11920e1a91c8ccaa5c9c232e2dbb60f9b6154bb Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 5 Apr 2021 00:45:39 -0700 Subject: [PATCH] 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). --- desktop_version/src/FileSystemUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index 68d21853..df41432f 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -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);