diff --git a/src/modules/filesystem/physfs/Filesystem.cpp b/src/modules/filesystem/physfs/Filesystem.cpp index 475b7587d..f82eb2baa 100644 --- a/src/modules/filesystem/physfs/Filesystem.cpp +++ b/src/modules/filesystem/physfs/Filesystem.cpp @@ -196,6 +196,12 @@ bool Filesystem::mount(const char *archive, const char *mountpoint) return false; std::string realPath(realDir); + + // Always disallow mounting of files inside the game source, since it won't + // work anyway if the game source is a zipped .love file. + if (realPath.find(game_source) == 0) + return false; + realPath += LOVE_PATH_SEPARATOR; realPath += archive;