mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -418,6 +418,7 @@ static void getMountedPath(
|
||||
bool FILESYSTEM_isAssetMounted(const char* filename)
|
||||
{
|
||||
const char* realDir;
|
||||
char path[MAX_PATH];
|
||||
|
||||
/* Fast path */
|
||||
if (assetDir[0] == '\0')
|
||||
@@ -425,7 +426,9 @@ bool FILESYSTEM_isAssetMounted(const char* filename)
|
||||
return false;
|
||||
}
|
||||
|
||||
realDir = PHYSFS_getRealDir(filename);
|
||||
getMountedPath(path, sizeof(path), filename);
|
||||
|
||||
realDir = PHYSFS_getRealDir(path);
|
||||
|
||||
if (realDir == NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user