Handling Y/N questions (bug #647860)
|Reported by:||eriktorbjorn||Owned by:||fingolfin|
|Game:||Monkey Island 1|
This patch enables the MI1/MI2 "instant win" cheats
(see bug #647860). I know Fingolfin said we should
close that bug as WONTFIX, but since these cheats are
part of the game scripts, and I believe that we will
eventually have to support other "Are you sure you want
to...?" style questions, I think we should fix it after
There are a few things I'm uncertain about:
With this patch, unkMessage2() will always write to the
VAR_KEYPRESS variable, which is a new variable that
I've added. I'm almost certain this is the correct
behaviour for MI1 and MI2, but for all other games it's
just a guess.
To handle Ctrl-Alt-<key>, I'm adding 250 to the value
_keyPressed would normally get. I don't know if this is
correct, but it works well enough to handle Ctrl-Alt-W
for me under Linux. It'll have to be tested with other
backends and operating systems though.
Ticket imported from: #655594. Ticket imported from: patches/253.