SCI: Fixed bug #3035186 - "ECOQUEST2: Crash When Receiving Ecorder". Also removed the now obsolete kStringCpy workaround table.
svn-id: r51372
This commit is contained in:
parent
5b686b539a
commit
bc6baef0c0
3 changed files with 9 additions and 10 deletions
|
@ -346,7 +346,7 @@ static SciKernelMapEntry s_kernelMap[] = {
|
|||
{ MAP_CALL(FOpen), SIG_EVERYWHERE, "ri", NULL, NULL },
|
||||
{ MAP_CALL(FPuts), SIG_EVERYWHERE, "ir", NULL, NULL },
|
||||
{ MAP_CALL(FileIO), SIG_EVERYWHERE, "i(.*)", kFileIO_subops, NULL },
|
||||
{ MAP_CALL(FindKey), SIG_EVERYWHERE, "l.", NULL, NULL },
|
||||
{ MAP_CALL(FindKey), SIG_EVERYWHERE, "l.", NULL, kFindKey_workarounds },
|
||||
{ MAP_CALL(FirstNode), SIG_EVERYWHERE, "[l0]", NULL, NULL },
|
||||
{ MAP_CALL(FlushResources), SIG_EVERYWHERE, "i", NULL, NULL },
|
||||
{ MAP_CALL(Format), SIG_EVERYWHERE, "r(.*)", NULL, NULL },
|
||||
|
@ -432,7 +432,7 @@ static SciKernelMapEntry s_kernelMap[] = {
|
|||
{ MAP_CALL(StrAt), SIG_EVERYWHERE, "ri(i)", NULL, NULL },
|
||||
{ MAP_CALL(StrCat), SIG_EVERYWHERE, "rr", NULL, NULL },
|
||||
{ MAP_CALL(StrCmp), SIG_EVERYWHERE, "rr(i)", NULL, NULL },
|
||||
{ MAP_CALL(StrCpy), SIG_EVERYWHERE, "r[r0](i)", NULL, kStrCpy_workarounds },
|
||||
{ MAP_CALL(StrCpy), SIG_EVERYWHERE, "r[r0](i)", NULL, NULL },
|
||||
{ MAP_CALL(StrEnd), SIG_EVERYWHERE, "r", NULL, NULL },
|
||||
{ MAP_CALL(StrLen), SIG_EVERYWHERE, "[r0]", NULL, NULL },
|
||||
{ MAP_CALL(StrSplit), SIG_EVERYWHERE, "rr[r0]", NULL, NULL },
|
||||
|
|
|
@ -150,6 +150,12 @@ const SciWorkaroundEntry kGetAngle_workarounds[] = {
|
|||
SCI_WORKAROUNDENTRY_TERMINATOR
|
||||
};
|
||||
|
||||
// gameID, room,script,lvl, object-name, method-name, call,index, workaround
|
||||
const SciWorkaroundEntry kFindKey_workarounds[] = {
|
||||
{ GID_ECOQUEST2, 100, 999, 0, "myList", "contains", -1, 0, { WORKAROUND_FAKE, 0 } }, // When Noah Greene gives Adam the Ecorder, and just before the game gives a demonstration, a null reference to a list is passed.
|
||||
SCI_WORKAROUNDENTRY_TERMINATOR
|
||||
};
|
||||
|
||||
// gameID, room,script,lvl, object-name, method-name, call,index, workaround
|
||||
const SciWorkaroundEntry kGraphDrawLine_workarounds[] = {
|
||||
{ GID_ISLANDBRAIN, 300, 300, 0, "dudeViewer", "show", -1, 0, { WORKAROUND_STILLCALL, 0 } }, // when looking at the gene explanation chart, gets called with 1 extra parameter
|
||||
|
@ -247,13 +253,6 @@ const SciWorkaroundEntry kUnLoad_workarounds[] = {
|
|||
SCI_WORKAROUNDENTRY_TERMINATOR
|
||||
};
|
||||
|
||||
// gameID, room,script,lvl, object-name, method-name, call,index, workaround
|
||||
const SciWorkaroundEntry kStrCpy_workarounds[] = {
|
||||
// seems not to be needed, because the signature was wrong
|
||||
//{ GID_ISLANDBRAIN, 260, 45, 0, "aWord", "addOn", -1, 0, { WORKAROUND_STILLCALL, 0 } }, // Hominy Homonym puzzle
|
||||
SCI_WORKAROUNDENTRY_TERMINATOR
|
||||
};
|
||||
|
||||
SciWorkaroundSolution trackOriginAndFindWorkaround(int index, const SciWorkaroundEntry *workaroundList, SciTrackOriginReply *trackOrigin) {
|
||||
EngineState *state = g_sci->getEngineState();
|
||||
ExecStack *lastCall = state->xs;
|
||||
|
|
|
@ -76,6 +76,7 @@ extern const SciWorkaroundEntry kAbs_workarounds[];
|
|||
extern const SciWorkaroundEntry kDisplay_workarounds[];
|
||||
extern const SciWorkaroundEntry kDisposeScript_workarounds[];
|
||||
extern const SciWorkaroundEntry kDoSoundFade_workarounds[];
|
||||
extern const SciWorkaroundEntry kFindKey_workarounds[];
|
||||
extern const SciWorkaroundEntry kGetAngle_workarounds[];
|
||||
extern const SciWorkaroundEntry kGraphDrawLine_workarounds[];
|
||||
extern const SciWorkaroundEntry kGraphSaveBox_workarounds[];
|
||||
|
@ -89,7 +90,6 @@ extern const SciWorkaroundEntry kNewWindow_workarounds[];
|
|||
extern const SciWorkaroundEntry kPaletteUnsetFlag_workarounds[];
|
||||
extern const SciWorkaroundEntry kSetPort_workarounds[];
|
||||
extern const SciWorkaroundEntry kUnLoad_workarounds[];
|
||||
extern const SciWorkaroundEntry kStrCpy_workarounds[];
|
||||
|
||||
extern SciWorkaroundSolution trackOriginAndFindWorkaround(int index, const SciWorkaroundEntry *workaroundList, SciTrackOriginReply *trackOrigin);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue