diff options
author | Max Horn | 2008-10-16 17:18:15 +0000 |
---|---|---|
committer | Max Horn | 2008-10-16 17:18:15 +0000 |
commit | 36311eefb44a43221665bf6d5d11a4d6fd9f330f (patch) | |
tree | 0bc717c6fb5709a0aefe415506877e89b82d2e1d /backends/platform/PalmOS | |
parent | 0cd49391103a4d7ea33c2a8d61f5c93ab3af0155 (diff) | |
download | scummvm-rg350-36311eefb44a43221665bf6d5d11a4d6fd9f330f.tar.gz scummvm-rg350-36311eefb44a43221665bf6d5d11a4d6fd9f330f.tar.bz2 scummvm-rg350-36311eefb44a43221665bf6d5d11a4d6fd9f330f.zip |
OSYSTEM: Pushed out some port specific code from common/system.cpp to the respective ports
svn-id: r34812
Diffstat (limited to 'backends/platform/PalmOS')
-rw-r--r-- | backends/platform/PalmOS/Src/be_base.cpp | 16 | ||||
-rw-r--r-- | backends/platform/PalmOS/Src/be_base.h | 3 |
2 files changed, 17 insertions, 2 deletions
diff --git a/backends/platform/PalmOS/Src/be_base.cpp b/backends/platform/PalmOS/Src/be_base.cpp index 32e68bde9f..9e1fdf39d1 100644 --- a/backends/platform/PalmOS/Src/be_base.cpp +++ b/backends/platform/PalmOS/Src/be_base.cpp @@ -171,10 +171,22 @@ Common::SaveFileManager *OSystem_PalmBase::getSavefileManager() { return _saveMgr; } -Audio::Mixer * OSystem_PalmBase::getMixer() { +Audio::Mixer *OSystem_PalmBase::getMixer() { return _mixerMgr; } -Common::TimerManager * OSystem_PalmBase::getTimerManager() { +Common::TimerManager *OSystem_PalmBase::getTimerManager() { return _timerMgr; } + +#define PALMOS_CONFIG_FILE "/PALM/Programs/ScummVM/scummvm.ini" + +Common::SeekableReadStream *OSystem_PalmBase::openConfigFileForReading() { + Common::FSNode file(PALMOS_CONFIG_FILE); + return file.openForReading(); +} + +Common::WriteStream *OSystem_PalmBase::openConfigFileForWriting() { + Common::FSNode file(PALMOS_CONFIG_FILE); + return file.openForWriting(); +} diff --git a/backends/platform/PalmOS/Src/be_base.h b/backends/platform/PalmOS/Src/be_base.h index 582aae5d7a..8c08c0a2ff 100644 --- a/backends/platform/PalmOS/Src/be_base.h +++ b/backends/platform/PalmOS/Src/be_base.h @@ -257,6 +257,9 @@ public: Common::SaveFileManager *getSavefileManager(); Common::TimerManager *getTimerManager(); + + virtual Common::SeekableReadStream *openConfigFileForReading(); + virtual Common::WriteStream *openConfigFileForWriting(); }; #endif |