From 22c4ffdfc66006ca71bc95a23aca6aa2541c7658 Mon Sep 17 00:00:00 2001 From: arekbr Date: Wed, 5 Aug 2026 06:47:05 +0200 Subject: [PATCH] fix: add missing CDebuggerApi::GetWarpSpeed() referenced by #114 My mistake when splitting the original work into separate PRs: the warp/get endpoint hunk in CDebuggerServerApi.cpp went into #114 (the commits were split by file, and that file carried changes belonging to two topics), while the CDebuggerApi::GetWarpSpeed() it calls stayed in the still-open #116. With #114 and #115 merged and #116 not, master does not compile on Linux: CDebuggerServerApi.cpp:112: error: 'class CDebuggerApi' has no member named 'GetWarpSpeed'; did you mean 'SetWarpSpeed'? This adds just that method (declaration + trivial forward to the existing CDebugInterface::GetSettingIsWarpSpeed), nothing else. Verified: master + this patch builds clean on Debian 13 / GCC 14. Note: the macOS and Windows CI failures on the same runs are unrelated to the merged PRs -- macOS dies in MTEngineSDL's Libtool step (Xcode 26.6 runner image), Windows in bundled SDL's SDL_endian.h (_m_prefetch builtin clash). Details in a comment on the run. --- src/DebugInterface/CDebuggerApi.cpp | 5 +++++ src/DebugInterface/CDebuggerApi.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/DebugInterface/CDebuggerApi.cpp b/src/DebugInterface/CDebuggerApi.cpp index ac0e17ba..646b8d7f 100644 --- a/src/DebugInterface/CDebuggerApi.cpp +++ b/src/DebugInterface/CDebuggerApi.cpp @@ -539,6 +539,11 @@ void CDebuggerApi::SetWarpSpeed(bool isWarpSpeed) debugInterface->SetSettingIsWarpSpeed(isWarpSpeed); } +bool CDebuggerApi::GetWarpSpeed() +{ + return debugInterface->GetSettingIsWarpSpeed(); +} + bool CDebuggerApi::KeyboardDown(u32 mtKeyCode) { return debugInterface->KeyboardDown(mtKeyCode); diff --git a/src/DebugInterface/CDebuggerApi.h b/src/DebugInterface/CDebuggerApi.h index ae7070b3..21c429c2 100644 --- a/src/DebugInterface/CDebuggerApi.h +++ b/src/DebugInterface/CDebuggerApi.h @@ -111,6 +111,7 @@ class CDebuggerApi // virtual void SetWarpSpeed(bool isWarpSpeed); + virtual bool GetWarpSpeed(); // input virtual bool KeyboardDown(u32 mtKeyCode);