diff options
-rw-r--r-- | backends/platform/symbian/src/SymbianOS.cpp | 8 | ||||
-rw-r--r-- | backends/platform/symbian/src/SymbianOS.h | 3 | ||||
-rw-r--r-- | backends/platform/symbian/src/portdefs.h | 1 | ||||
-rw-r--r-- | common/file.cpp | 5 |
4 files changed, 15 insertions, 2 deletions
diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp index 90bd99fa7d..a18b5e12a4 100644 --- a/backends/platform/symbian/src/SymbianOS.cpp +++ b/backends/platform/symbian/src/SymbianOS.cpp @@ -672,6 +672,14 @@ int symbian_fseek(FILE* handle, long int offset, int whence) { void symbian_clearerr(FILE* /*handle*/) { } +void symbian_fflush(FILE* handle) { + ((TSymbianFileEntry*)(handle))->iFileHandle.Flush(); +} + +int symbian_ferror(FILE* /*handle*/) { + return 0; +} + /** Vibration support */ #ifdef USE_VIBRA_SE_PXXX void OSystem_SDL_Symbian::initializeVibration() { diff --git a/backends/platform/symbian/src/SymbianOS.h b/backends/platform/symbian/src/SymbianOS.h index 80329d984e..289da6de32 100644 --- a/backends/platform/symbian/src/SymbianOS.h +++ b/backends/platform/symbian/src/SymbianOS.h @@ -63,6 +63,9 @@ public: // Overloaded from SDL_Commmon void quit(); + + // Returns reference to File session + RFs& FsSession(); protected: // // The mixer callback function, passed on to OSystem::setSoundCallback(). diff --git a/backends/platform/symbian/src/portdefs.h b/backends/platform/symbian/src/portdefs.h index 02436d7c35..7e1fd0993a 100644 --- a/backends/platform/symbian/src/portdefs.h +++ b/backends/platform/symbian/src/portdefs.h @@ -156,6 +156,5 @@ void inline *scumm_bsearch(const void *key, const void *base, size_t nmemb, size namespace Symbian { extern void FatalError(const char *msg); extern char* GetExecutablePath(); -#define DYNAMIC_MODULES 1 } #endif diff --git a/common/file.cpp b/common/file.cpp index cc9ae01baf..5c0668e06f 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -122,7 +122,8 @@ long int symbian_ftell(FILE* handle); int symbian_fseek(FILE* handle, long int offset, int whence); void symbian_clearerr(FILE* handle); - + void symbian_fflush(FILE* handle); + int symbian_ferror(FILE* handle); // Only functions used in the ScummVM source have been defined here! #define fopen(name, mode) symbian_fopen(name, mode) #define fclose(handle) symbian_fclose(handle) @@ -132,6 +133,8 @@ #define ftell(handle) symbian_ftell(handle) #define fseek(handle, offset, whence) symbian_fseek(handle, offset, whence) #define clearerr(handle) symbian_clearerr(handle) + #define fflush(handle) symbian_fflush(handle) + #define ferror(handle) symbian_ferror(handle) #endif namespace Common { |