diff options
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 |