aboutsummaryrefslogtreecommitdiff
path: root/common/config-manager.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 /common/config-manager.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 'common/config-manager.cpp')
-rw-r--r--common/config-manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/config-manager.cpp b/common/config-manager.cpp
index e0a8dfa56b..88e5e8512a 100644
--- a/common/config-manager.cpp
+++ b/common/config-manager.cpp
@@ -62,7 +62,7 @@ ConfigManager::ConfigManager()
void ConfigManager::loadDefaultConfigFile() {
// Open the default config file
- SeekableReadStream *stream = g_system->openConfigFileForReading();
+ SeekableReadStream *stream = g_system->createConfigReadStream();
_filename.clear(); // clear the filename to indicate that we are using the default config file
// ... load it, if available ...
@@ -190,7 +190,7 @@ void ConfigManager::flushToDisk() {
if (_filename.empty()) {
// Write to the default config file
- stream = g_system->openConfigFileForWriting();
+ stream = g_system->createConfigWriteStream();
if (!stream) // If writing to the config file is not possible, do nothing
return;
} else {