1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-28 15:38:30 +02:00

Ignore zip files in level metadata loading

Zip files that have been successfully mounted in editorclass::loadZips()
will now be ignored when the game does its second pass over the levels
directory. Otherwise, this would produce a superfluous error message,
because the game would attempt to parse the zip file as a level file
(when it's not a level file and is in fact a binary file).
This commit is contained in:
Misa 2021-03-04 16:47:18 -08:00 committed by Ethan Lee
parent 9e4076a418
commit b419cfe29e

View File

@ -206,7 +206,7 @@ static void levelMetaDataCallback(const char* filename)
LevelMetaData temp;
std::string filename_ = filename;
if (!FILESYSTEM_isFile(filename))
if (!FILESYSTEM_isFile(filename) || FILESYSTEM_isMounted(filename))
{
return;
}