mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-12 14:09:43 +01: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:
parent
9e4076a418
commit
b419cfe29e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue