1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-04 18:29:41 +01:00

Remove getDirSeparator() usage from mountAssetsFrom()

PhysFS uses platform-independent notation, so we really don't need to
care about getting the correct dir separator here. Especially since we
don't ever do so anywhere else (e.g. load/saveTiXml2Document()), either.
This commit is contained in:
Misa 2021-04-03 14:20:27 -07:00 committed by Ethan Lee
parent d95ba3a8b3
commit 34ec943b5c

View file

@ -216,7 +216,6 @@ static bool FILESYSTEM_exists(const char *fname)
static bool FILESYSTEM_mountAssetsFrom(const char *fname)
{
const char* real_dir = PHYSFS_getRealDir(fname);
const char* dir_separator;
char path[MAX_PATH];
if (real_dir == NULL)
@ -228,9 +227,7 @@ static bool FILESYSTEM_mountAssetsFrom(const char *fname)
return false;
}
dir_separator = PHYSFS_getDirSeparator();
SDL_snprintf(path, sizeof(path), "%s%s%s", real_dir, dir_separator, fname);
SDL_snprintf(path, sizeof(path), "%s/%s", real_dir, fname);
if (!PHYSFS_mount(path, NULL, 0))
{