nga-c: retro binary now exits with return code 1 if file is not found when using -f or -t
FossilOrigin-Name: c4e719b54c9dc8df37e35db5c4fbadb693b2a8fa23ac261182f93bd99f86e8cd
This commit is contained in:
parent
31a6428fb2
commit
8fcf6219ea
2 changed files with 505 additions and 492 deletions
File diff suppressed because it is too large
Load diff
|
@ -1446,8 +1446,10 @@ void include_file(char *fname, int run_tests) {
|
|||
int tokens = 0;
|
||||
FILE *fp; /* Open the file. If not found, */
|
||||
fp = fopen(fname, "r"); /* exit. */
|
||||
if (fp == NULL)
|
||||
return;
|
||||
if (fp == NULL) {
|
||||
printf("File `%s` not found. Exiting.\n", fname);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
arp = cpu.rp;
|
||||
aip = cpu.ip;
|
||||
|
|
Loading…
Reference in a new issue