diff options
author | Max Horn | 2009-01-23 03:30:40 +0000 |
---|---|---|
committer | Max Horn | 2009-01-23 03:30:40 +0000 |
commit | e4b013f616818f6da4cf7a1896f31d1429ef8f04 (patch) | |
tree | 81ea72ac2ccb737bd8e2934af9335c1f56f46c18 /backends/platform/ps2 | |
parent | 3e7155981e020bc19540abc8486b816cb57c8a41 (diff) | |
download | scummvm-rg350-e4b013f616818f6da4cf7a1896f31d1429ef8f04.tar.gz scummvm-rg350-e4b013f616818f6da4cf7a1896f31d1429ef8f04.tar.bz2 scummvm-rg350-e4b013f616818f6da4cf7a1896f31d1429ef8f04.zip |
Renamed OSystem::openConfigFileForReading & openConfigFileForWriting to createConfigReadStream & createConfigWriteStream, in order to make it clear that the *caller* is responsible for deleting the streams (i.e., 'owns' them)
svn-id: r36013
Diffstat (limited to 'backends/platform/ps2')
-rw-r--r-- | backends/platform/ps2/systemps2.cpp | 6 | ||||
-rw-r--r-- | backends/platform/ps2/systemps2.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/backends/platform/ps2/systemps2.cpp b/backends/platform/ps2/systemps2.cpp index e8a7d11318..a9b3b9f29f 100644 --- a/backends/platform/ps2/systemps2.cpp +++ b/backends/platform/ps2/systemps2.cpp @@ -758,7 +758,7 @@ void OSystem_PS2::quit(void) { } void OSystem_PS2::makeConfigPath(char *dest) { - // FIXME: Maybe merge this method into openConfigFileForReading/openConfigFileForWriting ? + // FIXME: Maybe merge this method into createConfigReadStream/createConfigWriteStream ? FILE *handle; strcpy(dest, "cdfs:/ScummVM.ini"); handle = ps2_fopen(dest, "r"); @@ -772,14 +772,14 @@ void OSystem_PS2::makeConfigPath(char *dest) { strcpy(dest, "mc0:ScummVM/scummvm.ini"); } -Common::SeekableReadStream *OSystem_PS2::openConfigFileForReading() { +Common::SeekableReadStream *OSystem_PS2::createConfigReadStream() { char configFile[MAXPATHLEN]; makeConfigPath(configFile); Common::FSNode file(configFile); return file.openForReading(); } -Common::WriteStream *OSystem_PS2::openConfigFileForWriting() { +Common::WriteStream *OSystem_PS2::createConfigWriteStream() { char configFile[MAXPATHLEN]; makeConfigPath(configFile); Common::FSNode file(configFile); diff --git a/backends/platform/ps2/systemps2.h b/backends/platform/ps2/systemps2.h index e4ac410caa..fecd7244f8 100644 --- a/backends/platform/ps2/systemps2.h +++ b/backends/platform/ps2/systemps2.h @@ -107,8 +107,8 @@ public: virtual void quit(); - virtual Common::SeekableReadStream *openConfigFileForReading(); - virtual Common::WriteStream *openConfigFileForWriting(); + virtual Common::SeekableReadStream *createConfigReadStream(); + virtual Common::WriteStream *createConfigWriteStream(); virtual Graphics::PixelFormat getOverlayFormat() const { return Graphics::createPixelFormat<555>(); } |