From ec51ee7016eddc78626a7e1f9d133214a3e09573 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Fri, 10 Jan 2020 13:59:34 -0500 Subject: [PATCH] Messagebox on missing data.zip --- desktop_version/src/FileSystemUtils.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index c2f936c9..88a2ba9f 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -7,6 +7,7 @@ #include #include +#include #include #if defined(_WIN32) @@ -75,7 +76,17 @@ void FILESYSTEM_init(char *argvZero) #else strcpy(output, "data.zip"); #endif - PHYSFS_mount(output, NULL, 1); + if (!PHYSFS_mount(output, NULL, 1)) + { + SDL_ShowSimpleMessageBox( + SDL_MESSAGEBOX_ERROR, + "data.zip missing!", + "You do not have data.zip!" + "\n\nGrab it from your purchased copy of the game," + "\n\nor get it from the free Make and Play Edition.", + NULL + ); + } } void FILESYSTEM_deinit()