mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 11:46:27 +00:00
Merge pull request #13845 from Dentomologist/host_remove_unnecessary_functions
Host: Remove unnecessary functions
This commit is contained in:
commit
222dda3305
15 changed files with 0 additions and 73 deletions
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue