[Scummvm-git-logs] scummvm master -> 00c2851d45b4bcccc61eec15972abe512c4322a7

aquadran noreply at scummvm.org
Thu Aug 14 09:09:16 UTC 2025


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

Summary:
00c2851d45 WINTERMUTE: Convert unix paths to dos in debugger commands


Commit: 00c2851d45b4bcccc61eec15972abe512c4322a7
    https://github.com/scummvm/scummvm/commit/00c2851d45b4bcccc61eec15972abe512c4322a7
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2025-08-14T11:09:09+02:00

Commit Message:
WINTERMUTE: Convert unix paths to dos in debugger commands

Changed paths:
    engines/wintermute/debugger.cpp
    engines/wintermute/debugger/debugger_controller.cpp


diff --git a/engines/wintermute/debugger.cpp b/engines/wintermute/debugger.cpp
index 41061c8679a..d9d140dc5e7 100644
--- a/engines/wintermute/debugger.cpp
+++ b/engines/wintermute/debugger.cpp
@@ -61,7 +61,7 @@ Console::~Console() {
 bool Console::Cmd_Help(int argc, const char **argv) {
 	if (argc == 1) {
 		// Debugger::Cmd_Help(argc, argv);
-		debugPrintf("\nType help somecommand to get specific help.\n");
+		debugPrintf("\nType 'help' <command> to get specific help.\n");
 	} else {
 		printUsage(argv[1]);
 	}
diff --git a/engines/wintermute/debugger/debugger_controller.cpp b/engines/wintermute/debugger/debugger_controller.cpp
index 909314bab29..00d474f3201 100644
--- a/engines/wintermute/debugger/debugger_controller.cpp
+++ b/engines/wintermute/debugger/debugger_controller.cpp
@@ -61,8 +61,10 @@ bool DebuggerController::bytecodeExists(const Common::String &filename) {
 
 Error DebuggerController::addBreakpoint(const char *filename, int line) {
 	assert(SCENGINE);
-	if (bytecodeExists(filename)) {
-		SCENGINE->_breakpoints.push_back(new Breakpoint(filename, line, this));
+	Common::String scriptPath(filename);
+	scriptPath.replace('/', '\\');
+	if (bytecodeExists(scriptPath.c_str())) {
+		SCENGINE->_breakpoints.push_back(new Breakpoint(scriptPath.c_str(), line, this));
 		return Error(SUCCESS, OK);
 	} else {
 		return Error(ERROR, NO_SUCH_BYTECODE);
@@ -133,10 +135,12 @@ Error DebuggerController::enableWatchpoint(uint id) {
 
 Error DebuggerController::addWatch(const char *filename, const char *symbol) {
 	assert(SCENGINE);
-	if (!bytecodeExists(filename)) {
-		return Error(ERROR, NO_SUCH_BYTECODE, filename);
+	Common::String scriptPath(filename);
+	scriptPath.replace('/', '\\');
+	if (!bytecodeExists(scriptPath.c_str())) {
+		return Error(ERROR, NO_SUCH_BYTECODE, scriptPath.c_str());
 	}
-	SCENGINE->_watches.push_back(new Watch(filename, symbol, this));
+	SCENGINE->_watches.push_back(new Watch(scriptPath.c_str(), symbol, this));
 	return Error(SUCCESS, OK, "Watchpoint added");
 }
 




More information about the Scummvm-git-logs mailing list