1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-02 02:53:32 +02: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:
Misa 2021-04-13 00:08:40 -07:00 committed by Ethan Lee
parent 9b4691676f
commit a64f75a880

View File

@ -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)
{