aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone
diff options
context:
space:
mode:
authorMax Horn2008-10-16 17:18:15 +0000
committerMax Horn2008-10-16 17:18:15 +0000
commit36311eefb44a43221665bf6d5d11a4d6fd9f330f (patch)
tree0bc717c6fb5709a0aefe415506877e89b82d2e1d /backends/platform/iphone
parent0cd49391103a4d7ea33c2a8d61f5c93ab3af0155 (diff)
downloadscummvm-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/iphone')
-rw-r--r--backends/platform/iphone/osys_iphone.cpp10
-rw-r--r--backends/platform/iphone/osys_iphone.h3
2 files changed, 10 insertions, 3 deletions
diff --git a/backends/platform/iphone/osys_iphone.cpp b/backends/platform/iphone/osys_iphone.cpp
index 521e91a87e..6ca5a52928 100644
--- a/backends/platform/iphone/osys_iphone.cpp
+++ b/backends/platform/iphone/osys_iphone.cpp
@@ -1312,8 +1312,14 @@ OSystem *OSystem_IPHONE_create() {
return new OSystem_IPHONE();
}
-const char* OSystem_IPHONE::getConfigPath() {
- return SCUMMVM_PREFS_PATH;
+Common::SeekableReadStream *OSystem_IPHONE::openConfigFileForReading() {
+ Common::FSNode file(SCUMMVM_PREFS_PATH);
+ return file.openForReading();
+}
+
+Common::WriteStream *OSystem_IPHONE::openConfigFileForWriting() {
+ Common::FSNode file(SCUMMVM_PREFS_PATH);
+ return file.openForWriting();
}
void iphone_main(int argc, char *argv[]) {
diff --git a/backends/platform/iphone/osys_iphone.h b/backends/platform/iphone/osys_iphone.h
index a9a3ddad65..c743039860 100644
--- a/backends/platform/iphone/osys_iphone.h
+++ b/backends/platform/iphone/osys_iphone.h
@@ -177,7 +177,8 @@ public:
void startSoundsystem();
void stopSoundsystem();
- static const char* getConfigPath();
+ virtual Common::SeekableReadStream *openConfigFileForReading();
+ virtual Common::WriteStream *openConfigFileForWriting();
protected:
inline void addDirtyRect(int16 x1, int16 y1, int16 w, int16 h);