summaryrefslogtreecommitdiff
path: root/mm/2s2h/DeveloperTools/DebugConsole.cpp
diff options
context:
space:
mode:
authorJameriquiah <42100286+Jameriquiah@users.noreply.github.com>2026-07-21 22:22:35 -0400
committerGitHub <noreply@github.com>2026-07-21 22:22:35 -0400
commit65fb1b6e3cc49780057208f4050a160d1a4bdfc7 (patch)
treec0f2434ea2ee47c51cbb47ede559d4d5b318ec23 /mm/2s2h/DeveloperTools/DebugConsole.cpp
parentf86e04b4d5492906718aa7bacf5b92d55756006c (diff)
Bump LUS to port-maintenance (#1801)
* bump lus to port-maintenance * clang * remove redundant cast * clang again * update lus commit
Diffstat (limited to 'mm/2s2h/DeveloperTools/DebugConsole.cpp')
-rw-r--r--mm/2s2h/DeveloperTools/DebugConsole.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/mm/2s2h/DeveloperTools/DebugConsole.cpp b/mm/2s2h/DeveloperTools/DebugConsole.cpp
index 56dd33bdd..2b284e62b 100644
--- a/mm/2s2h/DeveloperTools/DebugConsole.cpp
+++ b/mm/2s2h/DeveloperTools/DebugConsole.cpp
@@ -17,15 +17,15 @@ extern "C" {
#include "overlays/gamestates/ovl_title/z_title.h"
}
-#define CMD_REGISTER Ship::Context::GetInstance()->GetConsole()->AddCommand
+#define CMD_REGISTER Ship::Context::GetRawInstance()->GetConsole()->AddCommand
// TODO: Commands should be using the output passed in.
-#define ERROR_MESSAGE \
- std::reinterpret_pointer_cast<Ship::ConsoleWindow>( \
- Ship::Context::GetInstance()->GetWindow()->GetGui()->GetGuiWindow("Console")) \
+#define ERROR_MESSAGE \
+ std::reinterpret_pointer_cast<Ship::ConsoleWindow>( \
+ Ship::Context::GetRawInstance()->GetWindow()->GetGui()->GetGuiWindow("Console")) \
->SendErrorMessage
-#define INFO_MESSAGE \
- std::reinterpret_pointer_cast<Ship::ConsoleWindow>( \
- Ship::Context::GetInstance()->GetWindow()->GetGui()->GetGuiWindow("Console")) \
+#define INFO_MESSAGE \
+ std::reinterpret_pointer_cast<Ship::ConsoleWindow>( \
+ Ship::Context::GetRawInstance()->GetWindow()->GetGui()->GetGuiWindow("Console")) \
->SendInfoMessage
static bool ActorSpawnHandler(std::shared_ptr<Ship::Console> Console, const std::vector<std::string>& args,
@@ -255,7 +255,7 @@ static bool FileSelectHandler(std::shared_ptr<Ship::Console> Console, const std:
static bool QuitHandler(std::shared_ptr<Ship::Console> Console, const std::vector<std::string>& args,
std::string* output) {
- Ship::Context::GetInstance()->GetWindow()->Close();
+ Ship::Context::GetRawInstance()->GetWindow()->Close();
return 0;
}