mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Make failure to open file a fatal error
This commit is contained in:
@@ -544,7 +544,7 @@ void fstk_Init(char *pFileName)
|
|||||||
} else {
|
} else {
|
||||||
pCurrentFile = fopen(pFileName, "rb");
|
pCurrentFile = fopen(pFileName, "rb");
|
||||||
if (pCurrentFile == NULL)
|
if (pCurrentFile == NULL)
|
||||||
yyerror("Unable to open file '%s': %s", pFileName,
|
fatalerror("Unable to open file '%s': %s", pFileName,
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
}
|
}
|
||||||
nFileStackDepth = 0;
|
nFileStackDepth = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user