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

bluegr bluegr at gmail.com
Wed Dec 16 17:29:36 UTC 2020


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:
b0dc2ad01d SCI: add a shortcut alias for the registers debug console command


Commit: b0dc2ad01def9d915fe5e6b6045a9ffeeff6edda
    https://github.com/scummvm/scummvm/commit/b0dc2ad01def9d915fe5e6b6045a9ffeeff6edda
Author: Ralph Caraveo III (deckarep at gmail.com)
Date: 2020-12-16T19:29:31+02:00

Commit Message:
SCI: add a shortcut alias for the registers debug console command

When debugging, I'm constantly inspecting the SCI VM registers and thought this would be a great command to have an alias for.
I am proposing the following alias: `reg` for the command `registers` and also updated the help docs.

Changed paths:
    engines/sci/console.cpp


diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index ee7c84164d..ab6a96e7eb 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -179,6 +179,7 @@ Console::Console(SciEngine *engine) : GUI::Debugger(),
 	// Script
 	registerCmd("addresses",			WRAP_METHOD(Console, cmdAddresses));
 	registerCmd("registers",			WRAP_METHOD(Console, cmdRegisters));
+	registerCmd("reg",					WRAP_METHOD(Console, cmdRegisters));
 	registerCmd("dissect_script",		WRAP_METHOD(Console, cmdDissectScript));
 	registerCmd("backtrace",			WRAP_METHOD(Console, cmdBacktrace));
 	registerCmd("bt",					WRAP_METHOD(Console, cmdBacktrace));	// alias
@@ -405,7 +406,7 @@ bool Console::cmdHelp(int argc, const char **argv) {
 	debugPrintf("\n");
 	debugPrintf("Script:\n");
 	debugPrintf(" addresses - Provides information on how to pass addresses\n");
-	debugPrintf(" registers - Shows the current register values\n");
+	debugPrintf(" registers / reg - Shows the current register values\n");
 	debugPrintf(" dissect_script - Examines a script\n");
 	debugPrintf(" backtrace / bt - Dumps the send/self/super/call/calle/callb stack\n");
 	debugPrintf(" trace / t / s - Executes one operation (no parameters) or several operations (specified as a parameter) \n");




More information about the Scummvm-git-logs mailing list