mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-05 16:41:33 +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)
|
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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user