mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 19:45:07 +00:00
Changed the way VAR_VERSION_KEY is handled
svn-id: r27665
This commit is contained in:
parent
83172bc8b0
commit
dcae6d14a4
@ -391,10 +391,12 @@ void ScummEngine_v8::processKeyboard(Common::KeyState lastKeyHit) {
|
||||
|
||||
void ScummEngine_v7::processKeyboard(Common::KeyState lastKeyHit) {
|
||||
|
||||
// COMI version string is hard coded in the engine, hence we don't
|
||||
// invoke versionDialog here (it would only show nonsense).
|
||||
// Dig/FT version strings are partly hard coded, too.
|
||||
if (_game.version == 7 && lastKeyHit.ascii == VAR(VAR_VERSION_KEY)) {
|
||||
// VAR_VERSION_KEY (usually ctrl-v) is used in COMI, Dig and FT to trigger
|
||||
// a version dialog, unless VAR_VERSION_KEY is set to 0. However, the COMI
|
||||
// version string is hard coded in the engine, hence we don't invoke
|
||||
// versionDialog for it. Dig/FT version strings are partly hard coded, too.
|
||||
if (_game.id != GID_CMI && 0 != VAR(VAR_VERSION_KEY) &&
|
||||
lastKeyHit.keycode == Common::KEYCODE_v && lastKeyHit.flags == Common::KBD_CTRL) {
|
||||
versionDialog();
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user