diff options
author | Max Horn | 2010-07-22 09:36:04 +0000 |
---|---|---|
committer | Max Horn | 2010-07-22 09:36:04 +0000 |
commit | 66115d697e78c3ff3d9e253c49174e46f50bd62d (patch) | |
tree | f6bd79ee8498ae431d78476828d5079edbf7eaf0 /engines/sci/engine/workarounds.h | |
parent | 87e4823c752ce617668a0ad87f810ef274b67ef6 (diff) | |
download | scummvm-rg350-66115d697e78c3ff3d9e253c49174e46f50bd62d.tar.gz scummvm-rg350-66115d697e78c3ff3d9e253c49174e46f50bd62d.tar.bz2 scummvm-rg350-66115d697e78c3ff3d9e253c49174e46f50bd62d.zip |
SCI: Remove '#define FAKE', make SCI_WORKAROUNDENTRY_TERMINATOR 'private'
svn-id: r51133
Diffstat (limited to 'engines/sci/engine/workarounds.h')
-rw-r--r-- | engines/sci/engine/workarounds.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/sci/engine/workarounds.h b/engines/sci/engine/workarounds.h index d44ccf66b2..93ffc30e2b 100644 --- a/engines/sci/engine/workarounds.h +++ b/engines/sci/engine/workarounds.h @@ -43,6 +43,12 @@ struct SciWorkaroundSolution { uint16 value; }; +/** + * A structure describing a 'workaround' for a SCI script bug. + * + * Arrays of SciWorkaroundEntry instances are terminated by + * a fake entry in which "objectName" is NULL. + */ struct SciWorkaroundEntry { SciGameId gameId; int roomNr; @@ -55,10 +61,6 @@ struct SciWorkaroundEntry { SciWorkaroundSolution newValue; }; -#define SCI_WORKAROUNDENTRY_TERMINATOR { (SciGameId)0, -1, -1, 0, NULL, NULL, -1, 0, { WORKAROUND_NONE, 0 } } -#define FAKE WORKAROUND_FAKE - -// gameID, room,script,lvl, object-name, method-name, call,index, workaround extern const SciWorkaroundEntry opcodeDivWorkarounds[]; extern const SciWorkaroundEntry opcodeDptoaWorkarounds[]; extern const SciWorkaroundEntry uninitializedReadWorkarounds[]; @@ -73,8 +75,6 @@ extern const SciWorkaroundEntry kSetPort_workarounds[]; extern const SciWorkaroundEntry kUnLoad_workarounds[]; extern const SciWorkaroundEntry kStrCpy_workarounds[]; -#undef FAKE - } // End of namespace Sci #endif // SCI_ENGINE_WORKAROUNDS_H |