From 569f3c65b724a1c7be7a64bbfc61ec8aef060033 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 24 Oct 2015 16:14:15 -0400 Subject: XEEN: Beginnings of work on copy protection check method --- engines/xeen/scripts.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines/xeen') 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; } -- cgit v1.2.3