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/ps2/systemps2.cpp | |
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/ps2/systemps2.cpp')
-rw-r--r-- | backends/platform/ps2/systemps2.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/backends/platform/ps2/systemps2.cpp b/backends/platform/ps2/systemps2.cpp index d4dd9aedcf..85eb303e86 100644 --- a/backends/platform/ps2/systemps2.cpp +++ b/backends/platform/ps2/systemps2.cpp @@ -770,6 +770,7 @@ void OSystem_PS2::quit(void) { } void OSystem_PS2::makeConfigPath(char *dest) { + // FIXME: Maybe merge this method into openConfigFileForReading/openConfigFileForWriting ? FILE *handle; strcpy(dest, "cdfs:/ScummVM.ini"); handle = ps2_fopen(dest, "r"); @@ -783,6 +784,20 @@ void OSystem_PS2::makeConfigPath(char *dest) { strcpy(dest, "mc0:ScummVM/scummvm.ini"); } +Common::SeekableReadStream *OSystem_PS2::openConfigFileForReading() { + char configFile[MAXPATHLEN]; + makeConfigPath(configFile); + Common::FSNode file(configFile); + return file.openForReading(); +} + +Common::WriteStream *OSystem_PS2::openConfigFileForWriting() { + char configFile[MAXPATHLEN]; + makeConfigPath(configFile); + Common::FSNode file(configFile); + return file.openForWriting(); +} + bool OSystem_PS2::runningFromHost(void) { return (_bootDevice == HOST); } |