aboutsummaryrefslogtreecommitdiff
path: root/saga/game.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-10-17 03:28:21 +0000
committerEugene Sandulenko2005-10-17 03:28:21 +0000
commitee4cbcb98db2087627e597eea6d61afeab8e23b1 (patch)
tree273ac0fa1224a69b3f0935acb34ddd7708c079cd /saga/game.cpp
parent3dd9f208cc6521aa92457c669e8301b1f3cbfd6d (diff)
downloadscummvm-rg350-ee4cbcb98db2087627e597eea6d61afeab8e23b1.tar.gz
scummvm-rg350-ee4cbcb98db2087627e597eea6d61afeab8e23b1.tar.bz2
scummvm-rg350-ee4cbcb98db2087627e597eea6d61afeab8e23b1.zip
Fix bug #1326833 "ITE: Missing copy protection". Though it is disabled
by default by kind permission from Wyrmkeep Entertainment Co. svn-id: r19125
Diffstat (limited to 'saga/game.cpp')
-rw-r--r--saga/game.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/saga/game.cpp b/saga/game.cpp
index 0a5f9885e2..af747c3a3c 100644
--- a/saga/game.cpp
+++ b/saga/game.cpp
@@ -120,6 +120,11 @@ static PanelButton ITE_SavePanelButtons[] = {
{kPanelButtonSaveText, -1,5, 0,0, kTextEnterSaveGameName,'-',0, 0,0,0},
};
+static PanelButton ITE_ProtectPanelButtons[] = {
+ {kPanelButtonProtectEdit, 26,17, 119,17, 0,'-',0, 0,0,0},
+ {kPanelButtonProtectText, -1,5, 0,0, kTextEnterProtectAnswer,'-',0, 0,0,0},
+};
+
/*
static PanelButton ITE_ProtectionPanelButtons[] = {
{kPanelButtonArrow, 0,0, 0,0, 0,'-',0, 0,0,0}, //TODO
@@ -184,7 +189,13 @@ static GameDisplayInfo ITE_DisplayInfo = {
74, 44, // save panel offsets
172, 58, // save panel width & height
ARRAYSIZE(ITE_SavePanelButtons),
- ITE_SavePanelButtons
+ ITE_SavePanelButtons,
+
+ 0, // protect edit index
+ 74, 44, // protect panel offsets
+ 172, 58, // protect panel width & height
+ ARRAYSIZE(ITE_ProtectPanelButtons),
+ ITE_ProtectPanelButtons
};
static GameResourceDescription ITE_Resources = {
@@ -635,6 +646,13 @@ static GameDisplayInfo IHNM_DisplayInfo = { //TODO: fill it all
0, 0, // save panel offsets
0, 0, // save panel width & height
ARRAYSIZE(IHNM_SavePanelButtons),
+ IHNM_SavePanelButtons,
+
+ // No protection panel in IHNM
+ -1, // protect edit index
+ 0, 0, // protect panel offsets
+ 0, 0, // protect panel width & height
+ ARRAYSIZE(IHNM_SavePanelButtons),
IHNM_SavePanelButtons
};