Print full file path in error messages

This commit is contained in:
dbrotz
2018-12-06 22:59:24 -08:00
parent e25a4b0abc
commit a05fd9b818
3 changed files with 10 additions and 6 deletions

View File

@@ -902,7 +902,7 @@ void out_BinaryFile(char *s)
{
FILE *f;
f = fstk_FindFile(s);
f = fstk_FindFile(s, NULL);
if (f == NULL)
err(1, "Unable to open incbin file '%s'", s);
@@ -938,7 +938,7 @@ void out_BinaryFileSlice(char *s, int32_t start_pos, int32_t length)
if (length < 0)
fatalerror("Number of bytes to read must be greater than zero");
f = fstk_FindFile(s);
f = fstk_FindFile(s, NULL);
if (f == NULL)
err(1, "Unable to open included file '%s'", s);