mirror of
https://github.com/JesseTG/melonds-ds.git
synced 2024-11-24 06:59:40 +00:00
Fix Platform::IsEndOfFile
- filestream_eof returns 0 on success, not true
This commit is contained in:
parent
2ca093d616
commit
4ae41cb7dd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user