aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2015-10-24 16:14:15 -0400
committerPaul Gilbert2015-10-24 16:14:15 -0400
commit569f3c65b724a1c7be7a64bbfc61ec8aef060033 (patch)
treeb84ec3a17df5e0d6ba78d94be1cee1a104916d65 /engines
parente06c879a477b4e187a31859e2519767f7e992bdb (diff)
downloadscummvm-rg350-569f3c65b724a1c7be7a64bbfc61ec8aef060033.tar.gz
scummvm-rg350-569f3c65b724a1c7be7a64bbfc61ec8aef060033.tar.bz2
scummvm-rg350-569f3c65b724a1c7be7a64bbfc61ec8aef060033.zip
XEEN: Beginnings of work on copy protection check method
Diffstat (limited to 'engines')
-rw-r--r--engines/xeen/scripts.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp
index 790e3d729e..175292fa1d 100644
--- a/engines/xeen/scripts.cpp
+++ b/engines/xeen/scripts.cpp
@@ -20,6 +20,7 @@
*
*/
+#include "common/config-manager.h"
#include "xeen/scripts.h"
#include "xeen/dialogs_input.h"
#include "xeen/dialogs_whowill.h"
@@ -1792,7 +1793,11 @@ bool Scripts::ifProc(int action, uint32 mask, int mode, int charIndex) {
}
bool Scripts::copyProtectionCheck() {
- // Currentl not implemented
+ // Only bother doing the protection check if it's been explicitly turned on
+ if (!ConfMan.getBool("copy_protection"))
+ return true;
+
+ // Currently not implemented
return true;
}