Fix Platform::IsEndOfFile

- filestream_eof returns 0 on success, not true
This commit is contained in:
Jesse Talavera-Greenberg 2023-08-16 16:08:25 -04:00
parent 2ca093d616
commit 4ae41cb7dd

View File

@ -30,6 +30,7 @@
#include <streams/file_stream_transforms.h>
#include <retro_assert.h>
#include <compat/strl.h>
#include <vfs/vfs.h>
#include "config.hpp"
#include "environment.hpp"
@ -198,7 +199,7 @@ bool Platform::IsEndOfFile(FileHandle* file)
if (!file)
return false;
return filestream_eof(file->file);
return filestream_eof(file->file) == EOF;
}
bool Platform::FileReadLine(char* str, int count, FileHandle* file)