From dc04daa11f410c5cde2e7bcf528b9049dff2ad60 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Fri, 24 Jun 2022 03:56:42 +0200 Subject: [PATCH] Remove OnDisplayInvalidated Remove OnSystemPerformanceCounter --- src/core/host_interface.cpp | 7 ------- src/core/host_interface.h | 5 ----- src/libretro/libretro_host_interface.cpp | 4 ---- src/libretro/libretro_host_interface.h | 2 -- 4 files changed, 18 deletions(-) diff --git a/src/core/host_interface.cpp b/src/core/host_interface.cpp index ded41b1e..c8127fb8 100644 --- a/src/core/host_interface.cpp +++ b/src/core/host_interface.cpp @@ -421,7 +421,6 @@ bool HostInterface::LoadState(const char* filename) return false; } - OnDisplayInvalidated(); return true; } @@ -778,7 +777,6 @@ void HostInterface::CheckForSettingsChanges(const Settings& old_settings) g_settings.runahead_frames != old_settings.runahead_frames) { g_gpu->UpdateSettings(); - OnDisplayInvalidated(); } if (g_settings.gpu_widescreen_hack != old_settings.gpu_widescreen_hack || @@ -875,7 +873,6 @@ void HostInterface::CheckForSettingsChanges(const Settings& old_settings) m_display->SetDisplayLinearFiltering(g_settings.display_linear_filtering); m_display->SetDisplayIntegerScaling(g_settings.display_integer_scaling); m_display->SetDisplayStretch(g_settings.display_stretch); - OnDisplayInvalidated(); } } @@ -1067,7 +1064,6 @@ void HostInterface::ToggleSoftwareRendering() AddFormattedOSDMessage(5.0f, TranslateString("OSDMessage", "Switching to %s renderer..."), Settings::GetRendererDisplayName(new_renderer)); System::RecreateGPU(new_renderer); - OnDisplayInvalidated(); } void HostInterface::ModifyResolutionScale(s32 increment) @@ -1085,7 +1081,6 @@ void HostInterface::ModifyResolutionScale(s32 increment) g_gpu->UpdateSettings(); g_gpu->ResetGraphicsAPIState(); System::ClearMemorySaveStates(); - OnDisplayInvalidated(); } } @@ -1147,6 +1142,4 @@ void HostInterface::RecreateSystem() ReportError("Failed to boot system after recreation."); return; } - - OnDisplayInvalidated(); } diff --git a/src/core/host_interface.h b/src/core/host_interface.h index 36116731..89524a9e 100644 --- a/src/core/host_interface.h +++ b/src/core/host_interface.h @@ -151,11 +151,6 @@ public: virtual void OnRunningGameChanged(const std::string& path, CDImage* image, const std::string& game_code, const std::string& game_title) = 0; - virtual void OnSystemPerformanceCountersUpdated() = 0; - - /// Called when the display is invalidated (e.g. a state is loaded). - virtual void OnDisplayInvalidated() = 0; - protected: virtual bool AcquireHostDisplay() = 0; virtual void ReleaseHostDisplay() = 0; diff --git a/src/libretro/libretro_host_interface.cpp b/src/libretro/libretro_host_interface.cpp index e8a86ed2..365b622b 100644 --- a/src/libretro/libretro_host_interface.cpp +++ b/src/libretro/libretro_host_interface.cpp @@ -1050,10 +1050,6 @@ void LibretroHostInterface::OnRunningGameChanged(const std::string& path, CDImag UpdateSettings(); } -void LibretroHostInterface::OnSystemPerformanceCountersUpdated() {} - -void LibretroHostInterface::OnDisplayInvalidated() {} - void LibretroHostInterface::InitRumbleInterface() { m_rumble_interface_valid = g_retro_environment_callback(RETRO_ENVIRONMENT_GET_RUMBLE_INTERFACE, &m_rumble_interface); diff --git a/src/libretro/libretro_host_interface.h b/src/libretro/libretro_host_interface.h index 362af24e..f18df8ca 100644 --- a/src/libretro/libretro_host_interface.h +++ b/src/libretro/libretro_host_interface.h @@ -56,8 +56,6 @@ public: bool UpdateSystemAVInfo(bool use_resolution_scale); - void OnSystemPerformanceCountersUpdated() override; - void OnDisplayInvalidated() override; bool UpdateCoreOptionsDisplay(bool controller); // Called by frontend