From b419cfe29e257e51c52128222f54dab07c2bd1cc Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 4 Mar 2021 16:47:18 -0800 Subject: [PATCH] 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). --- desktop_version/src/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index 98a84f53..84e9e23a 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -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; }