GLK: FROTZ: Fix crash opening up Milliways release 185

It's a v6 game, and it still won't properly run, but at least
it now gives a proper in-game message saying the screen width
is too small rather than just crashing trying to find an MG1 file
This commit is contained in:
Paul Gilbert 2020-04-02 19:52:32 -07:00
parent ac38d08700
commit 0c940567dd
4 changed files with 5 additions and 3 deletions

View File

@ -29,7 +29,7 @@
namespace Glk {
namespace Frotz {
const Header::StoryEntry Header::RECORDS[25] = {
const Header::StoryEntry Header::RECORDS[26] = {
{ SHERLOCK, 21, "871214" },
{ SHERLOCK, 26, "880127" },
{ BEYOND_ZORK, 47, "870915" },
@ -54,6 +54,7 @@ const Header::StoryEntry Header::RECORDS[25] = {
{ LURKING_HORROR, 203, "870506" },
{ LURKING_HORROR, 219, "870912" },
{ LURKING_HORROR, 221, "870918" },
{ MILLIWAYS, 184, "890412" },
{ UNKNOWN, 0, "------" }
};

View File

@ -178,7 +178,7 @@ private:
zword _release;
char _serial[7];
};
static const StoryEntry RECORDS[25];
static const StoryEntry RECORDS[26];
public:
zbyte h_version;
zbyte h_config;

View File

@ -85,6 +85,7 @@ enum Story {
ARTHUR,
JOURNEY,
LURKING_HORROR,
MILLIWAYS,
UNKNOWN
};

View File

@ -242,7 +242,7 @@ bool GlkInterface::initPictures() {
return true;
}
if (h_version == V6)
if (h_version == V6 && _storyId != MILLIWAYS)
error("Could not locate MG1 file");
return false;
}