diff options
Diffstat (limited to 'gameDetector.cpp')
-rw-r--r-- | gameDetector.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gameDetector.cpp b/gameDetector.cpp index 3b7651720a..bad009effb 100644 --- a/gameDetector.cpp +++ b/gameDetector.cpp @@ -230,6 +230,7 @@ void GameDetector::parseCommandLine(int argc, char **argv) exit(1); case 'w': _saveconfig = true; + scummcfg->set_writing(true); HANDLE_OPT_OPTION(); if (option != NULL) scummcfg->change_filename(option); @@ -258,7 +259,7 @@ void GameDetector::parseCommandLine(int argc, char **argv) } } - if (_saveconfig) + if (_exe_name) scummcfg->flush(); return; |