diff options
author | Lars Persson | 2008-09-05 11:31:51 +0000 |
---|---|---|
committer | Lars Persson | 2008-09-05 11:31:51 +0000 |
commit | 5c0b91397d559f0a62412a135324f974e50a18eb (patch) | |
tree | dbaba584b6696d7a57f87981a3edfa2d3a4a0eb1 /backends/platform/symbian/src | |
parent | 53f67255966153acafa6b901a560c7e895511503 (diff) | |
download | scummvm-rg350-5c0b91397d559f0a62412a135324f974e50a18eb.tar.gz scummvm-rg350-5c0b91397d559f0a62412a135324f974e50a18eb.tar.bz2 scummvm-rg350-5c0b91397d559f0a62412a135324f974e50a18eb.zip |
Updated Symbian OS file actions with ferror and fflush.
svn-id: r34340
Diffstat (limited to 'backends/platform/symbian/src')
-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 |
3 files changed, 11 insertions, 1 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 |