aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMax Horn2004-08-02 17:09:31 +0000
committerMax Horn2004-08-02 17:09:31 +0000
commit527c1cd200dbdcebac3cd141c8733cdb4e694948 (patch)
tree37dbc8a57e17eae9e3b879a1fe1226573f0531ef /base
parent166b05aed4c6431c6c4b19a87c94646498ed1e99 (diff)
downloadscummvm-rg350-527c1cd200dbdcebac3cd141c8733cdb4e694948.tar.gz
scummvm-rg350-527c1cd200dbdcebac3cd141c8733cdb4e694948.tar.bz2
scummvm-rg350-527c1cd200dbdcebac3cd141c8733cdb4e694948.zip
Workaround for bug #999122; this will fix config files which were broken by the 0.6.1 release
svn-id: r14444
Diffstat (limited to 'base')
-rw-r--r--base/engine.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/base/engine.cpp b/base/engine.cpp
index da98ea7bb7..abec0afe2c 100644
--- a/base/engine.cpp
+++ b/base/engine.cpp
@@ -69,8 +69,17 @@ const char *Engine::getSavePath() const {
#endif
// If SCUMMVM_SAVEPATH was not specified, try to use game specific savepath from config
- if (!dir || dir[0] == 0)
+ if (!dir || dir[0] == 0) {
dir = ConfMan.get("savepath").c_str();
+
+ // Work around a bug (#999122) in the original 0.6.1 release of
+ // ScummVM, which would insert a bad savepath value into config files.
+ if (0 == strcmp(dir, "None")) {
+ ConfMan.removeKey("savepath", ConfMan.getActiveDomain());
+ ConfMan.flushToDisk();
+ dir = ConfMan.get("savepath").c_str();
+ }
+ }
#ifdef _WIN32_WCE
if (dir[0] == 0)