Another try at zak copy protection bypass.
svn-id: r11295
This commit is contained in:
parent
2658021292
commit
183b822629
1 changed files with 13 additions and 1 deletions
|
@ -548,6 +548,10 @@ void ScummEngine_v2::o2_setBitVar() {
|
|||
|
||||
}
|
||||
|
||||
#ifndef BYPASS_COPY_PROT
|
||||
#define BYPASS_COPY_PROT
|
||||
#endif
|
||||
|
||||
void ScummEngine_v2::o2_getBitVar() {
|
||||
getResultPos();
|
||||
int var = fetchScriptWord();
|
||||
|
@ -557,7 +561,15 @@ void ScummEngine_v2::o2_getBitVar() {
|
|||
int bit_offset = bit_var & 0x0f;
|
||||
bit_var >>= 4;
|
||||
|
||||
setResult((_scummVars[bit_var] & (1 << bit_offset)) ? 1 : 0);
|
||||
#if defined(BYPASS_COPY_PROT)
|
||||
// The Enchanced version of Zak McKracken included in the
|
||||
// SelectWare Classic Collection bundle has no copy protection
|
||||
// and doesn't include the codes.
|
||||
if (_gameId == GID_ZAK && var == 1467)
|
||||
setResult(0);
|
||||
else
|
||||
#endif
|
||||
setResult((_scummVars[bit_var] & (1 << bit_offset)) ? 1 : 0);
|
||||
}
|
||||
|
||||
void ScummEngine_v2::ifStateCommon(byte type) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue