diff options
author | Lars Persson | 2008-09-05 19:03:30 +0000 |
---|---|---|
committer | Lars Persson | 2008-09-05 19:03:30 +0000 |
commit | 5388ecf722f3ac32686debc5a3a4fb7bf4e9f0a1 (patch) | |
tree | fcb6dd28e450372518deb83222a6b320dcad095e /backends/platform | |
parent | f88ad12952d9f29a66a7ad62b09c8a35d2999434 (diff) | |
download | scummvm-rg350-5388ecf722f3ac32686debc5a3a4fb7bf4e9f0a1.tar.gz scummvm-rg350-5388ecf722f3ac32686debc5a3a4fb7bf4e9f0a1.tar.bz2 scummvm-rg350-5388ecf722f3ac32686debc5a3a4fb7bf4e9f0a1.zip |
Add symbian implementations to create read/write configfile handles
svn-id: r34363
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/symbian/src/SymbianOS.cpp | 10 | ||||
-rw-r--r-- | backends/platform/symbian/src/SymbianOS.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp index ac63137f6a..3ca6546276 100644 --- a/backends/platform/symbian/src/SymbianOS.cpp +++ b/backends/platform/symbian/src/SymbianOS.cpp @@ -130,6 +130,16 @@ static Common::String getDefaultConfigFileName() { return configFile; } +Common::SeekableReadStream *OSystem_SDL_Symbian::openConfigFileForReading() { + Common::FilesystemNode file(getDefaultConfigFileName()); + return file.openForReading(); +} + +Common::WriteStream *OSystem_SDL_Symbian::openConfigFileForWriting() { + Common::FilesystemNode file(getDefaultConfigFileName()); + return file.openForWriting(); +} + OSystem_SDL_Symbian::zoneDesc OSystem_SDL_Symbian::_zones[TOTAL_ZONES] = { { 0, 0, 320, 145 }, { 0, 145, 150, 55 }, diff --git a/backends/platform/symbian/src/SymbianOS.h b/backends/platform/symbian/src/SymbianOS.h index 289da6de32..ca4fe1acf1 100644 --- a/backends/platform/symbian/src/SymbianOS.h +++ b/backends/platform/symbian/src/SymbianOS.h @@ -74,6 +74,9 @@ protected: // static void symbianMixCallback(void *s, byte *samples, int len); + + virtual Common::SeekableReadStream *openConfigFileForReading(); + virtual Common::WriteStream *openConfigFileForWriting(); public: // vibration support #ifdef USE_VIBRA_SE_PXXX |