aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ps2/systemps2.cpp
diff options
context:
space:
mode:
authorMax Horn2009-01-23 03:30:40 +0000
committerMax Horn2009-01-23 03:30:40 +0000
commite4b013f616818f6da4cf7a1896f31d1429ef8f04 (patch)
tree81ea72ac2ccb737bd8e2934af9335c1f56f46c18 /backends/platform/ps2/systemps2.cpp
parent3e7155981e020bc19540abc8486b816cb57c8a41 (diff)
downloadscummvm-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/systemps2.cpp')
-rw-r--r--backends/platform/ps2/systemps2.cpp6
1 files changed, 3 insertions, 3 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);