Skip to content

Commit

Permalink
AGI: Add Flag Quest version check workaround
Browse files Browse the repository at this point in the history
Fixes bug #15060
  • Loading branch information
sluicebox committed Apr 16, 2024
1 parent 2a66a9d commit b04f59b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion engines/agi/agi.cpp
Expand Up @@ -666,7 +666,13 @@ const char *AgiGame::getString(int number) {
if (0 <= number && number <= MAX_STRINGS) {
return strings[number];
} else {
// Occurs in Flag Quest during startup
// WORKAROUND: Flag Quest detects the interpreter version by comparing
// out of bounds strings to values know to be in memory in Sierra's
// interpreters. The game only starts if a known value matches an
// allowed version. We return the value for version 2.917. Bug #15060
if (number == 56) {
return ".917";
}
warning("invalid string number: %d", number);
return "";
}
Expand Down

0 comments on commit b04f59b

Please sign in to comment.