actually return an error when data.zip is missing

We should return an error code when we can't find data.zip, just letting
the program crash is a little crude.
This commit is contained in:
Christoph Böhmwalder
2020-01-10 22:04:04 +01:00
committed by Ethan Lee
parent 3b66877287
commit 3a961310ca
3 changed files with 13 additions and 3 deletions

View File

@@ -36,7 +36,10 @@ scriptclass script;
int main(int argc, char *argv[])
{
FILESYSTEM_init(argv[0]);
if(!FILESYSTEM_init(argv[0]))
{
return 1;
}
SDL_Init(
SDL_INIT_VIDEO |
SDL_INIT_AUDIO |