From 7d01c6bdb0edcc0fcdd12e25545d7732d39ad4b3 Mon Sep 17 00:00:00 2001 From: Misa Date: Wed, 26 Jun 2024 22:35:34 -0700 Subject: [PATCH] Fix double error dialog if data.zip is missing A minor gripe, but one thing I didn't notice with commit b4579d88d3631c36d3c6457e85ca0996c65941ca is that it now results in two dialogs if data.zip is missing: The first being the "data.zip is missing" dialog, and the second is the generic "Unable to initialize filesystem" dialog. So just bail early if data.zip can't be found, it's going to take the error path in main() and also bail regardless. --- desktop_version/src/FileSystemUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index 5643182d..5f61146a 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -342,6 +342,7 @@ int FILESYSTEM_init(char *argvZero, char* baseDir, char *assetsPath, char* langD "\nor get it from the free Make and Play Edition.", NULL ); + VVV_exit(1); return 0; }