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:
parent
40716742e1
commit
ec51ee7016
1 changed files with 12 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include <SDL.h>
|
||||||
#include <physfs.h>
|
#include <physfs.h>
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
@ -75,7 +76,17 @@ void FILESYSTEM_init(char *argvZero)
|
||||||
#else
|
#else
|
||||||
strcpy(output, "data.zip");
|
strcpy(output, "data.zip");
|
||||||
#endif
|
#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()
|
void FILESYSTEM_deinit()
|
||||||
|
|
Loading…
Reference in a new issue