1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 09:39:43 +01:00

Messagebox on missing data.zip

This commit is contained in:
Ethan Lee 2020-01-10 13:59:34 -05:00
parent 40716742e1
commit ec51ee7016

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()