diff options
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); } |