mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 18:09:46 -06:00
don't attempt to parse lines that failed to fetch
This commit is contained in:
@ -60,8 +60,8 @@ bool ARCodeFile::Load()
|
||||
char linebuf[1024];
|
||||
while (!feof(f))
|
||||
{
|
||||
if (fgets(linebuf, 1024, f) == NULL)
|
||||
printf("Error reading string from file!");
|
||||
if (fgets(linebuf, 1024, f) == nullptr)
|
||||
break;
|
||||
|
||||
linebuf[1023] = '\0';
|
||||
|
||||
|
Reference in New Issue
Block a user