mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-11 02:30:58 +02:00
Host: Remove unnecessary function
Remove Host_UpdateMainFrame(). The only non-empty call happened in DolphinNoGUI which called s_update_main_frame_event.Set(), but DolphinNoGUI never waits on that event.
This commit is contained in:
@@ -163,10 +163,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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@@ -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:
|
||||||
|
@@ -63,7 +63,6 @@ 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)
|
||||||
|
@@ -70,7 +70,6 @@ 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 +93,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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@@ -280,9 +280,6 @@ void Host_PPCBreakpointsChanged()
|
|||||||
// We ignore these, and their purpose should be questioned individually.
|
// We ignore these, and their purpose should be questioned individually.
|
||||||
// In particular, RequestRenderWindowSize, RequestFullscreen, and
|
// In particular, RequestRenderWindowSize, RequestFullscreen, and
|
||||||
// UpdateMainFrame should almost certainly be removed.
|
// UpdateMainFrame should almost certainly be removed.
|
||||||
void Host_UpdateMainFrame()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void Host_RequestRenderWindowSize(int w, int h)
|
void Host_RequestRenderWindowSize(int w, int h)
|
||||||
{
|
{
|
||||||
|
@@ -73,10 +73,6 @@ void Host_JitProfileDataWiped()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void Host_UpdateMainFrame()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void Host_RequestRenderWindowSize(int width, int height)
|
void Host_RequestRenderWindowSize(int width, int height)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@@ -50,9 +50,6 @@ void Host_JitCacheInvalidation()
|
|||||||
void Host_JitProfileDataWiped()
|
void Host_JitProfileDataWiped()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
void Host_UpdateMainFrame()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
void Host_RequestRenderWindowSize(int, int)
|
void Host_RequestRenderWindowSize(int, int)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@@ -50,9 +50,6 @@ void Host_JitCacheInvalidation()
|
|||||||
void Host_JitProfileDataWiped()
|
void Host_JitProfileDataWiped()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
void Host_UpdateMainFrame()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
void Host_RequestRenderWindowSize(int, int)
|
void Host_RequestRenderWindowSize(int, int)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user