1
0
Fork 0
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:
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) 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)
{ {