diff options
| author | Léo Lam <leo@leolam.fr> | 2022-01-03 01:40:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-03 01:40:37 +0100 |
| commit | 0de008da11987384c40a8d00aa583000fdabdb02 (patch) | |
| tree | c6bdb8ed1b2d956bc9b7c85d17d7095d124d014e /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | 4ee20368f8b5fe16fa19a93852c8563f26ca8856 (diff) | |
| parent | d590aa88a4f57e1dda9d9da56c60c6db73206e25 (diff) | |
Merge pull request #10332 from AdmiralCurtiss/config-port-general
Config: Port remaining General settings to new config system.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index a23ed9aff9..bdd585135b 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -555,8 +555,6 @@ void Renderer::CheckForConfigChanges() // Create On-Screen-Messages void Renderer::DrawDebugText() { - const auto& config = SConfig::GetInstance(); - if (g_ActiveConfig.bShowFPS) { // Position in the top-right corner of the screen. @@ -576,10 +574,10 @@ void Renderer::DrawDebugText() ImGui::End(); } - const bool show_movie_window = config.m_ShowFrameCount || config.m_ShowLag || - Config::Get(Config::MAIN_MOVIE_SHOW_INPUT_DISPLAY) || - Config::Get(Config::MAIN_MOVIE_SHOW_RTC) || - Config::Get(Config::MAIN_MOVIE_SHOW_RERECORD); + const bool show_movie_window = + Config::Get(Config::MAIN_SHOW_FRAME_COUNT) || Config::Get(Config::MAIN_SHOW_LAG) || + Config::Get(Config::MAIN_MOVIE_SHOW_INPUT_DISPLAY) || + Config::Get(Config::MAIN_MOVIE_SHOW_RTC) || Config::Get(Config::MAIN_MOVIE_SHOW_RERECORD); if (show_movie_window) { // Position under the FPS display. @@ -598,12 +596,12 @@ void Renderer::DrawDebugText() ImGui::Text("Input: %" PRIu64 " / %" PRIu64, Movie::GetCurrentInputCount(), Movie::GetTotalInputCount()); } - else if (config.m_ShowFrameCount) + else if (Config::Get(Config::MAIN_SHOW_FRAME_COUNT)) { ImGui::Text("Frame: %" PRIu64, Movie::GetCurrentFrame()); ImGui::Text("Input: %" PRIu64, Movie::GetCurrentInputCount()); } - if (SConfig::GetInstance().m_ShowLag) + if (Config::Get(Config::MAIN_SHOW_LAG)) ImGui::Text("Lag: %" PRIu64 "\n", Movie::GetCurrentLagCount()); if (Config::Get(Config::MAIN_MOVIE_SHOW_INPUT_DISPLAY)) ImGui::TextUnformatted(Movie::GetInputDisplay().c_str()); |
