[Scummvm-cvs-logs] CVS: scummvm/base gameDetector.cpp,1.53,1.54

Travis Howell kirben at users.sourceforge.net
Wed Dec 10 22:09:02 CET 2003


Update of /cvsroot/scummvm/scummvm/base
In directory sc8-pr-cvs1:/tmp/cvs-serv23982/base

Modified Files:
	gameDetector.cpp 
Log Message:

Add option to enable copy protection in SCUMM games, which ScummVM disable it by default.


Index: gameDetector.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/gameDetector.cpp,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- gameDetector.cpp	11 Dec 2003 05:32:27 -0000	1.53
+++ gameDetector.cpp	11 Dec 2003 06:08:43 -0000	1.54
@@ -81,6 +81,7 @@
 	"  --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 @@
 	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);
@@ -446,6 +448,10 @@
 
 			DO_LONG_OPTION("talkspeed")
 				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")





More information about the Scummvm-git-logs mailing list