fixed: EMUFILE_FILE eof() on textmode failed on windows (caused .dct files from mac systems freeze process while loading)

This commit is contained in:
zeromus 2023-02-11 15:59:40 -05:00
parent 5831099ebc
commit d0ed57d1b3
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public:
bool fail(bool unset=false) { bool ret = this->_failbit; if(unset) unfail(); return ret; }
void unfail() { this->_failbit = false; }
bool eof() { return size()==ftell(); }
virtual bool eof() { return size()==ftell(); }
size_t fread(const void *ptr, size_t bytes){
return _fread(ptr,bytes);
@ -327,6 +327,8 @@ public:
virtual void truncate(s32 length);
virtual bool eof() { return !!::feof(this->_fp); }
virtual int fprintf(const char *format, ...) {
va_list argptr;
va_start(argptr, format);