Skip to content

Commit

Permalink
Fix double error dialog if data.zip is missing
Browse files Browse the repository at this point in the history
A minor gripe, but one thing I didn't notice with commit
b4579d8 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.
  • Loading branch information
InfoTeddy committed Jul 11, 2024
1 parent a990f8d commit 7d01c6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions desktop_version/src/FileSystemUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7d01c6b

Please sign in to comment.