Messagebox on missing data.zip

This commit is contained in:
Ethan Lee 2020-01-10 13:59:34 -05:00
parent 40716742e1
commit ec51ee7016
1 changed files with 12 additions and 1 deletions

View File

@ -7,6 +7,7 @@
#include <stdlib.h>
#include <string.h>
#include <SDL.h>
#include <physfs.h>
#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()