mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-01 07:46:11 +00:00
parent
6665bf4a01
commit
ee28c2eb54
@ -1215,7 +1215,7 @@ void run_vm(EngineState *s) {
|
||||
if (validate_signedInteger(r_temp, compare1) && validate_signedInteger(s->r_acc, compare2))
|
||||
s->r_acc = make_reg(0, compare1 >= compare2);
|
||||
else
|
||||
s->r_acc = arithmetic_lookForWorkaround(opcode, NULL, r_temp, s->r_acc);
|
||||
s->r_acc = arithmetic_lookForWorkaround(opcode, opcodeGeWorkarounds, r_temp, s->r_acc);
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -38,12 +38,6 @@ const SciWorkaroundEntry opcodeDivWorkarounds[] = {
|
||||
SCI_WORKAROUNDENTRY_TERMINATOR
|
||||
};
|
||||
|
||||
// gameID, room,script,lvl, object-name, method-name, call,index, workaround
|
||||
const SciWorkaroundEntry opcodeOrWorkarounds[] = {
|
||||
{ GID_ECOQUEST2, 100, 0, 0, "Rain", "points", 0xcc6, 0, { WORKAROUND_FAKE, 0 } }, // when giving the papers to the customs officer, gets called against a pointer instead of a number - bug #3034464
|
||||
SCI_WORKAROUNDENTRY_TERMINATOR
|
||||
};
|
||||
|
||||
// gameID, room,script,lvl, object-name, method-name, call, index, workaround
|
||||
const SciWorkaroundEntry opcodeDptoaWorkarounds[] = {
|
||||
{ GID_LSL6, 360, 938, 0, "ROsc", "cycleDone", -1, 0, { WORKAROUND_FAKE, 1 } }, // when looking through tile in the shower room initial cycles get set to an object instead of 2, we fix this by setting 1 after decrease
|
||||
@ -52,6 +46,18 @@ const SciWorkaroundEntry opcodeDptoaWorkarounds[] = {
|
||||
SCI_WORKAROUNDENTRY_TERMINATOR
|
||||
};
|
||||
|
||||
// gameID, room,script,lvl, object-name, method-name, call,index, workaround
|
||||
const SciWorkaroundEntry opcodeGeWorkarounds[] = {
|
||||
{ GID_PQ3, 31, 31, 0, "rm031", "init", -1, 0, { WORKAROUND_FAKE, 1 } }, // pq3 english: when exiting the car, while morales is making phonecalls - bug #3037565
|
||||
SCI_WORKAROUNDENTRY_TERMINATOR
|
||||
};
|
||||
|
||||
// gameID, room,script,lvl, object-name, method-name, call,index, workaround
|
||||
const SciWorkaroundEntry opcodeOrWorkarounds[] = {
|
||||
{ GID_ECOQUEST2, 100, 0, 0, "Rain", "points", 0xcc6, 0, { WORKAROUND_FAKE, 0 } }, // when giving the papers to the customs officer, gets called against a pointer instead of a number - bug #3034464
|
||||
SCI_WORKAROUNDENTRY_TERMINATOR
|
||||
};
|
||||
|
||||
// gameID, room,script,lvl, object-name, method-name, call,index, workaround
|
||||
const SciWorkaroundEntry uninitializedReadWorkarounds[] = {
|
||||
{ GID_CNICK_KQ, 200, 0, 1, "Character", "<noname446>", -1, 504, { WORKAROUND_FAKE, 0 } }, // checkers, like in hoyle 3
|
||||
|
@ -69,8 +69,9 @@ struct SciWorkaroundEntry {
|
||||
};
|
||||
|
||||
extern const SciWorkaroundEntry opcodeDivWorkarounds[];
|
||||
extern const SciWorkaroundEntry opcodeOrWorkarounds[];
|
||||
extern const SciWorkaroundEntry opcodeDptoaWorkarounds[];
|
||||
extern const SciWorkaroundEntry opcodeGeWorkarounds[];
|
||||
extern const SciWorkaroundEntry opcodeOrWorkarounds[];
|
||||
extern const SciWorkaroundEntry uninitializedReadWorkarounds[];
|
||||
extern const SciWorkaroundEntry kAbs_workarounds[];
|
||||
extern const SciWorkaroundEntry kCelHigh_workarounds[];
|
||||
|
Loading…
x
Reference in New Issue
Block a user