mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +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:
parent
d95ba3a8b3
commit
34ec943b5c
1 changed files with 1 additions and 4 deletions
|
@ -216,7 +216,6 @@ static bool FILESYSTEM_exists(const char *fname)
|
||||||
static bool FILESYSTEM_mountAssetsFrom(const char *fname)
|
static bool FILESYSTEM_mountAssetsFrom(const char *fname)
|
||||||
{
|
{
|
||||||
const char* real_dir = PHYSFS_getRealDir(fname);
|
const char* real_dir = PHYSFS_getRealDir(fname);
|
||||||
const char* dir_separator;
|
|
||||||
char path[MAX_PATH];
|
char path[MAX_PATH];
|
||||||
|
|
||||||
if (real_dir == NULL)
|
if (real_dir == NULL)
|
||||||
|
@ -228,9 +227,7 @@ static bool FILESYSTEM_mountAssetsFrom(const char *fname)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
dir_separator = PHYSFS_getDirSeparator();
|
SDL_snprintf(path, sizeof(path), "%s/%s", real_dir, fname);
|
||||||
|
|
||||||
SDL_snprintf(path, sizeof(path), "%s%s%s", real_dir, dir_separator, fname);
|
|
||||||
|
|
||||||
if (!PHYSFS_mount(path, NULL, 0))
|
if (!PHYSFS_mount(path, NULL, 0))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue