fixed: EMUFILE_FILE eof() on textmode failed on windows (caused .dct files from mac systems freeze process while loading)
This commit is contained in:
parent
5831099ebc
commit
d0ed57d1b3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue