mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Workaround for bug #999122; this will fix config files which were broken by the 0.6.1 release
svn-id: r14444
This commit is contained in:
+10
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user