[Change] Give a nicer warning if the data file isn't found.
This commit is contained in:
parent
d6e2018e4b
commit
01b18c722e
@ -591,8 +591,8 @@ static void data_name(void) {
|
|||||||
char* buf;
|
char* buf;
|
||||||
|
|
||||||
/* Check if data file is valid. */
|
/* Check if data file is valid. */
|
||||||
if(pack_check(DATA)) {
|
if((DATA == NULL) || (pack_check(DATA))) {
|
||||||
ERR("Data file '%s' not found", data);
|
WARN("Data file '%s' not found", DATA);
|
||||||
WARN("You should specify which data file to use with '-d'");
|
WARN("You should specify which data file to use with '-d'");
|
||||||
WARN("See -h or --help for more information");
|
WARN("See -h or --help for more information");
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
|
Loading…
Reference in New Issue
Block a user