diff options
author | Travis Howell | 2003-12-11 06:08:43 +0000 |
---|---|---|
committer | Travis Howell | 2003-12-11 06:08:43 +0000 |
commit | 3d6461d30f9ec9a1be822a426304360b372f650a (patch) | |
tree | b5aeb0f17a3d3be9b8150438d0ae458a7c3306c5 /base | |
parent | 2ef887fd445b5226da99bf2a0e1917d02806325c (diff) | |
download | scummvm-rg350-3d6461d30f9ec9a1be822a426304360b372f650a.tar.gz scummvm-rg350-3d6461d30f9ec9a1be822a426304360b372f650a.tar.bz2 scummvm-rg350-3d6461d30f9ec9a1be822a426304360b372f650a.zip |
Add option to enable copy protection in SCUMM games, which ScummVM disable it by default.
svn-id: r11571
Diffstat (limited to 'base')
-rw-r--r-- | base/gameDetector.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp index 601fafd2a8..3f2f05da85 100644 --- a/base/gameDetector.cpp +++ b/base/gameDetector.cpp @@ -81,6 +81,7 @@ static const char USAGE_STRING[] = " --floppy-intro Use floppy version intro for Beneath a Steel Sky CD\n" #endif #ifndef DISABLE_SCUMM + " --copy-protection Enable the original copy protection in SCUMM games\n" " --demo-mode Start demo mode of Maniac Mansion (Classic version)\n" " --tempo=NUM Set music tempo (in percent, 50-200) for SCUMM games\n" " (default: 100)\n" @@ -162,6 +163,7 @@ GameDetector::GameDetector() { ConfMan.registerDefault("save_slot", -1); #ifndef DISABLE_SCUMM + ConfMan.registerDefault("copy_protection", false); ConfMan.registerDefault("demo_mode", false); ConfMan.registerDefault("talkspeed", 60); ConfMan.registerDefault("tempo", 0); @@ -448,6 +450,10 @@ void GameDetector::parseCommandLine(int argc, char **argv) { ConfMan.set("talkspeed", (int)strtol(option, 0, 10), kTransientDomain); END_OPTION + DO_LONG_OPTION_BOOL("copy-protection") + ConfMan.set("copy_protection", cmdValue, kTransientDomain); + END_OPTION + DO_LONG_OPTION_BOOL("demo-mode") ConfMan.set("demo_mode", cmdValue, kTransientDomain); END_OPTION |