Merge pull request #13845 from Dentomologist/host_remove_unnecessary_functions

Host: Remove unnecessary functions
This commit is contained in:
JosJuice 2025-08-04 19:49:58 +02:00 committed by GitHub
commit 222dda3305
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 0 additions and 73 deletions

View file

@ -110,10 +110,6 @@ void Host_PPCBreakpointsChanged()
{ {
} }
void Host_RefreshDSPDebuggerWindow()
{
}
bool Host_UIBlocksControllerState() bool Host_UIBlocksControllerState()
{ {
return false; return false;
@ -163,10 +159,6 @@ void Host_JitProfileDataWiped()
{ {
} }
void Host_UpdateMainFrame()
{
}
void Host_RequestRenderWindowSize(int width, int height) void Host_RequestRenderWindowSize(int width, int height)
{ {
std::thread jnicall(UpdatePointer); std::thread jnicall(UpdatePointer);

View file

@ -242,8 +242,6 @@ bool Init(Core::System& system, std::unique_ptr<BootParameters> boot, const Wind
INFO_LOG_FMT(BOOT, "Starting core = {} mode", system.IsWii() ? "Wii" : "GameCube"); INFO_LOG_FMT(BOOT, "Starting core = {} mode", system.IsWii() ? "Wii" : "GameCube");
INFO_LOG_FMT(BOOT, "CPU Thread separate = {}", system.IsDualCoreMode() ? "Yes" : "No"); INFO_LOG_FMT(BOOT, "CPU Thread separate = {}", system.IsDualCoreMode() ? "Yes" : "No");
Host_UpdateMainFrame(); // Disable any menus or buttons at boot
// Manually reactivate the video backend in case a GameINI overrides the video backend setting. // Manually reactivate the video backend in case a GameINI overrides the video backend setting.
VideoBackendBase::PopulateBackendInfo(wsi); VideoBackendBase::PopulateBackendInfo(wsi);
@ -342,7 +340,6 @@ static void CPUSetInitialExecutionState(bool force_paused = false)
bool paused = SConfig::GetInstance().bBootToPause || force_paused; bool paused = SConfig::GetInstance().bBootToPause || force_paused;
SetState(system, paused ? State::Paused : State::Running, true, true); SetState(system, paused ? State::Paused : State::Running, true, true);
Host_UpdateDisasmDialog(); Host_UpdateDisasmDialog();
Host_UpdateMainFrame();
Host_Message(HostMessageID::WMUserCreate); Host_Message(HostMessageID::WMUserCreate);
}); });
} }

View file

@ -482,8 +482,6 @@ int DSPCore::RunCycles(int cycles)
m_dsp_interpreter->Step(); m_dsp_interpreter->Step();
cycles--; cycles--;
Host::UpdateDebugger();
break; break;
case State::Stopped: case State::Stopped:
break; break;
@ -519,8 +517,6 @@ void DSPCore::SetState(State new_state)
// kick the event, in case we are waiting // kick the event, in case we are waiting
if (new_state == State::Running) if (new_state == State::Running)
m_step_event.Set(); m_step_event.Set();
Host::UpdateDebugger();
} }
State DSPCore::GetState() const State DSPCore::GetState() const

View file

@ -29,5 +29,4 @@ bool IsWiiHost();
void InterruptRequest(); void InterruptRequest();
void CodeLoaded(DSPCore& dsp, u32 addr, size_t size); void CodeLoaded(DSPCore& dsp, u32 addr, size_t size);
void CodeLoaded(DSPCore& dsp, const u8* ptr, size_t size); void CodeLoaded(DSPCore& dsp, const u8* ptr, size_t size);
void UpdateDebugger();
} // namespace DSP::Host } // namespace DSP::Host

View file

@ -262,7 +262,6 @@ public:
case CPU::State::Stepping: case CPU::State::Stepping:
cpu.Break(); cpu.Break();
Host_UpdateMainFrame();
break; break;
case CPU::State::Running: case CPU::State::Running:

View file

@ -96,14 +96,7 @@ void CodeLoaded(DSPCore& dsp, const u8* ptr, size_t size)
Symbols::AutoDisassembly(state, 0x0, 0x1000); Symbols::AutoDisassembly(state, 0x0, 0x1000);
Symbols::AutoDisassembly(state, 0x8000, 0x9000); Symbols::AutoDisassembly(state, 0x8000, 0x9000);
UpdateDebugger();
dsp.ClearIRAM(); dsp.ClearIRAM();
state.GetAnalyzer().Analyze(state); state.GetAnalyzer().Analyze(state);
} }
void UpdateDebugger()
{
Host_RefreshDSPDebuggerWindow();
}
} // namespace DSP::Host } // namespace DSP::Host

View file

@ -161,7 +161,6 @@ bool DSPLLE::Initialize(bool wii, bool dsp_thread)
m_dsp_thread = std::thread(DSPThread, this); m_dsp_thread = std::thread(DSPThread, this);
} }
Host_RefreshDSPDebuggerWindow();
return true; return true;
} }

View file

@ -58,12 +58,10 @@ bool Host_TASInputHasFocus();
void Host_Message(HostMessageID id); void Host_Message(HostMessageID id);
void Host_PPCSymbolsChanged(); void Host_PPCSymbolsChanged();
void Host_PPCBreakpointsChanged(); void Host_PPCBreakpointsChanged();
void Host_RefreshDSPDebuggerWindow();
void Host_RequestRenderWindowSize(int width, int height); void Host_RequestRenderWindowSize(int width, int height);
void Host_UpdateDisasmDialog(); void Host_UpdateDisasmDialog();
void Host_JitCacheInvalidation(); void Host_JitCacheInvalidation();
void Host_JitProfileDataWiped(); void Host_JitProfileDataWiped();
void Host_UpdateMainFrame();
void Host_UpdateTitle(const std::string& title); void Host_UpdateTitle(const std::string& title);
void Host_YieldToUI(); void Host_YieldToUI();
void Host_TitleChanged(); void Host_TitleChanged();

View file

@ -456,8 +456,6 @@ static void CompressAndDumpState(Core::System& system, CompressAndDumpState_args
Core::DisplayMessage(fmt::format("Saved State to {}", temp_path.filename().string()), 2000); Core::DisplayMessage(fmt::format("Saved State to {}", temp_path.filename().string()), 2000);
} }
} }
Host_UpdateMainFrame();
} }
void SaveAs(Core::System& system, const std::string& filename, bool wait) void SaveAs(Core::System& system, const std::string& filename, bool wait)

View file

@ -61,16 +61,11 @@ void Host_PPCBreakpointsChanged()
{ {
} }
void Host_RefreshDSPDebuggerWindow()
{
}
bool Host_UIBlocksControllerState() bool Host_UIBlocksControllerState()
{ {
return false; return false;
} }
static Common::Event s_update_main_frame_event;
void Host_Message(const HostMessageID id) void Host_Message(const HostMessageID id)
{ {
if (id == HostMessageID::WMUserStop) if (id == HostMessageID::WMUserStop)
@ -94,11 +89,6 @@ void Host_JitProfileDataWiped()
{ {
} }
void Host_UpdateMainFrame()
{
s_update_main_frame_event.Set();
}
void Host_RequestRenderWindowSize(int width, int height) void Host_RequestRenderWindowSize(int width, int height)
{ {
} }

View file

@ -277,13 +277,6 @@ void Host_PPCBreakpointsChanged()
[] { emit Host::GetInstance()->PPCBreakpointsChanged(); }); [] { emit Host::GetInstance()->PPCBreakpointsChanged(); });
} }
// We ignore these, and their purpose should be questioned individually.
// In particular, RequestRenderWindowSize, RequestFullscreen, and
// UpdateMainFrame should almost certainly be removed.
void Host_UpdateMainFrame()
{
}
void Host_RequestRenderWindowSize(int w, int h) void Host_RequestRenderWindowSize(int w, int h)
{ {
emit Host::GetInstance()->RequestRenderSize(w, h); emit Host::GetInstance()->RequestRenderSize(w, h);
@ -296,10 +289,6 @@ bool Host_UIBlocksControllerState()
Core::GetState(Core::System::GetInstance()) != Core::State::Paused; Core::GetState(Core::System::GetInstance()) != Core::State::Paused;
} }
void Host_RefreshDSPDebuggerWindow()
{
}
void Host_TitleChanged() void Host_TitleChanged()
{ {
#ifdef USE_DISCORD_PRESENCE #ifdef USE_DISCORD_PRESENCE

View file

@ -29,10 +29,6 @@ void Host_PPCBreakpointsChanged()
{ {
} }
void Host_RefreshDSPDebuggerWindow()
{
}
bool Host_UIBlocksControllerState() bool Host_UIBlocksControllerState()
{ {
return false; return false;
@ -73,10 +69,6 @@ void Host_JitProfileDataWiped()
{ {
} }
void Host_UpdateMainFrame()
{
}
void Host_RequestRenderWindowSize(int width, int height) void Host_RequestRenderWindowSize(int width, int height)
{ {
} }

View file

@ -49,9 +49,6 @@ void DSP::Host::CodeLoaded(DSPCore& dsp, const u8* ptr, size_t size)
void DSP::Host::InterruptRequest() void DSP::Host::InterruptRequest()
{ {
} }
void DSP::Host::UpdateDebugger()
{
}
static std::string CodeToHeader(const std::vector<u16>& code, const std::string& filename) static std::string CodeToHeader(const std::vector<u16>& code, const std::string& filename)
{ {

View file

@ -19,9 +19,6 @@ void Host_PPCSymbolsChanged()
void Host_PPCBreakpointsChanged() void Host_PPCBreakpointsChanged()
{ {
} }
void Host_RefreshDSPDebuggerWindow()
{
}
void Host_Message(HostMessageID) void Host_Message(HostMessageID)
{ {
} }
@ -50,9 +47,6 @@ void Host_JitCacheInvalidation()
void Host_JitProfileDataWiped() void Host_JitProfileDataWiped()
{ {
} }
void Host_UpdateMainFrame()
{
}
void Host_RequestRenderWindowSize(int, int) void Host_RequestRenderWindowSize(int, int)
{ {
} }

View file

@ -19,9 +19,6 @@ void Host_PPCSymbolsChanged()
void Host_PPCBreakpointsChanged() void Host_PPCBreakpointsChanged()
{ {
} }
void Host_RefreshDSPDebuggerWindow()
{
}
void Host_Message(HostMessageID) void Host_Message(HostMessageID)
{ {
} }
@ -50,9 +47,6 @@ void Host_JitCacheInvalidation()
void Host_JitProfileDataWiped() void Host_JitProfileDataWiped()
{ {
} }
void Host_UpdateMainFrame()
{
}
void Host_RequestRenderWindowSize(int, int) void Host_RequestRenderWindowSize(int, int)
{ {
} }