From 5c0b91397d559f0a62412a135324f974e50a18eb Mon Sep 17 00:00:00 2001 From: Lars Persson Date: Fri, 5 Sep 2008 11:31:51 +0000 Subject: Updated Symbian OS file actions with ferror and fflush. svn-id: r34340 --- backends/platform/symbian/src/SymbianOS.cpp | 8 ++++++++ backends/platform/symbian/src/SymbianOS.h | 3 +++ backends/platform/symbian/src/portdefs.h | 1 - 3 files changed, 11 insertions(+), 1 deletion(-) (limited to 'backends/platform/symbian') 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 -- cgit v1.2.3