diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index c170936b..5a1d8354 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -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) {