[Scummvm-git-logs] scummvm master -> fe5e497a15c4e5f108b65524f665c1aa06913093

bluegr noreply at scummvm.org
Thu Aug 1 07:08:24 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
fe5e497a15 GRIM: Alt+x should quit in demo


Commit: fe5e497a15c4e5f108b65524f665c1aa06913093
    https://github.com/scummvm/scummvm/commit/fe5e497a15c4e5f108b65524f665c1aa06913093
Author: Lars Sundström (l.sundstrom at gmail.com)
Date: 2024-08-01T10:08:21+03:00

Commit Message:
GRIM: Alt+x should quit in demo

The help screen in the demo says that Alt + x quits the demo.
Make it do so.

Changed paths:
    engines/grim/grim.cpp


diff --git a/engines/grim/grim.cpp b/engines/grim/grim.cpp
index 5aa5b9f386f..532b08e586f 100644
--- a/engines/grim/grim.cpp
+++ b/engines/grim/grim.cpp
@@ -1060,7 +1060,7 @@ void GrimEngine::mainLoop() {
 						continue;
 					}
 
-					if (_mode != DrawMode && _mode != SmushMode && (event.kbd.ascii == 'q')) {
+					if (_mode != DrawMode && _mode != SmushMode && ((event.kbd.ascii == 'q') || (event.kbd.ascii == 'x' && event.kbd.flags & Common::KBD_ALT))) {
 						handleExit();
 						break;
 					} else if (_mode != DrawMode && (event.kbd.keycode == Common::KEYCODE_PAUSE)) {




More information about the Scummvm-git-logs mailing list