mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Fixed love.filesystem.mount to consistently fail to mount things which are inside the game source directory, instead of only failing when the source dir is a zipped .love
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user