aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorTravis Howell2003-12-11 06:08:43 +0000
committerTravis Howell2003-12-11 06:08:43 +0000
commit3d6461d30f9ec9a1be822a426304360b372f650a (patch)
treeb5aeb0f17a3d3be9b8150438d0ae458a7c3306c5 /base
parent2ef887fd445b5226da99bf2a0e1917d02806325c (diff)
downloadscummvm-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.cpp6
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