Console include cleanup (#6413)

Looking into fixing warnings about commands already being bound,
LUS initializes a console window which we ignore,
but it registers global command handlers,
SohConsoleWindow does this again, but that's also where mInputBuffer/mFilterBuffer get set

Proper fix would be removing SohConsoleWindow, but it exists to have mono font
This commit is contained in:
Philip Dubé 2026-03-26 14:18:21 +00:00 committed by GitHub
parent 8c4d4738cc
commit 2f32abb511
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 0 additions and 18 deletions

View file

@ -3,14 +3,6 @@
#include "soh/SohGui/UIWidgets.hpp"
#include "soh/SohGui/SohGui.hpp"
void SohConsoleWindow::InitElement() {
ConsoleWindow::InitElement();
}
void SohConsoleWindow::UpdateElement() {
ConsoleWindow::UpdateElement();
}
void SohConsoleWindow::DrawElement() {
ImGui::BeginDisabled(CVarGetInteger(CVAR_SETTING("DisableChanges"), 0));
UIWidgets::PushStyleInput(THEME_COLOR);

View file

@ -9,8 +9,6 @@ class SohConsoleWindow : public Ship::ConsoleWindow {
using ConsoleWindow::ConsoleWindow;
protected:
void InitElement() override;
void UpdateElement() override;
void DrawElement() override;
};

View file

@ -1,6 +1,5 @@
#pragma once
#include <array>
#include <map>
#include <string>
#include <vector>

View file

@ -20,14 +20,7 @@
#include <port/switch/SwitchImpl.h>
#endif
#include "include/global.h"
#include "include/z64audio.h"
#include "soh/SaveManager.h"
#include "soh/OTRGlobals.h"
#include "soh/Enhancements/Presets/Presets.h"
#include "soh/resource/type/Skeleton.h"
#include "soh/Enhancements/game-interactor/GameInteractor.h"
#include "soh/Enhancements/cosmetics/authenticGfxPatches.h"
#include "soh/Enhancements/debugger/MessageViewer.h"
#include "soh/Notification/Notification.h"
#include "soh/Enhancements/TimeDisplay/TimeDisplay.h"