mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-08 18:09:45 +01:00
Fix isAssetMounted not using virtual mount path
Otherwise, it would report that tiles.png wasn't mounted when it was, and recolor one-way tiles in levels that don't want their one-ways recolored.
This commit is contained in:
parent
9b4691676f
commit
a64f75a880
1 changed files with 4 additions and 1 deletions
|
@ -418,6 +418,7 @@ static void getMountedPath(
|
||||||
bool FILESYSTEM_isAssetMounted(const char* filename)
|
bool FILESYSTEM_isAssetMounted(const char* filename)
|
||||||
{
|
{
|
||||||
const char* realDir;
|
const char* realDir;
|
||||||
|
char path[MAX_PATH];
|
||||||
|
|
||||||
/* Fast path */
|
/* Fast path */
|
||||||
if (assetDir[0] == '\0')
|
if (assetDir[0] == '\0')
|
||||||
|
@ -425,7 +426,9 @@ bool FILESYSTEM_isAssetMounted(const char* filename)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
realDir = PHYSFS_getRealDir(filename);
|
getMountedPath(path, sizeof(path), filename);
|
||||||
|
|
||||||
|
realDir = PHYSFS_getRealDir(path);
|
||||||
|
|
||||||
if (realDir == NULL)
|
if (realDir == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue