mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 15:31:59 +00:00
eof was not working properly with caching
svn-id: r33108
This commit is contained in:
parent
4657a52b07
commit
6cff2e8239
@ -597,13 +597,18 @@ size_t symbian_fwrite(const void* ptr, size_t size, size_t numItems, FILE* handl
|
||||
|
||||
bool symbian_feof(FILE* handle) {
|
||||
TInt pos = 0;
|
||||
TSymbianFileEntry* entry = ((TSymbianFileEntry*)(handle));
|
||||
|
||||
if (((TSymbianFileEntry*)(handle))->iFileHandle.Seek(ESeekCurrent, pos) == KErrNone) {
|
||||
if (entry->iFileHandle.Seek(ESeekCurrent, pos) == KErrNone) {
|
||||
|
||||
TInt size = 0;
|
||||
if (((TSymbianFileEntry*)(handle))->iFileHandle.Size(size) == KErrNone) {
|
||||
if (pos == size)
|
||||
if (entry->iFileHandle.Size(size) == KErrNone) {
|
||||
if(entry->iInputPos == KErrNotFound && pos == size)
|
||||
return true;
|
||||
|
||||
if(entry->iInputPos != KErrNotFound && pos == size && entry->iInputPos == entry->iInputBufferLen)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user