sfrotz always claims to be in EGA mode
While working on #225 I noticed that even though I'm loading MCGA graphics, the Shogun game file behaves as if it's using an EGA graphics board. Starting the game with sfrotz -I 6 shogun.z6
and using release 322 (the DOS one) and issuing the COLOR
command, you won't see an option for grey.
I determined this by running the Infocom DOS Shogun package under DOSBOX. Starting it with the /dm
flag shifts it into VGA/MCGA mode. This allows the option for grey to appear. The /de
flag explicitly sets EGA mode. The /dc
flag sets CGA mode -- only black and white are used. Using the COLOR
command there will simply swap foreground and background.
So, the objective here is to go through Shogun's source code and figure out how it determines what graphics mode is being used and adapt that mechanism to Frotz.