mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-03-06 14:27:44 +00:00
ImGui: Don't show overlays when system paused
This commit is contained in:
parent
f25d7f6e09
commit
74452eede3
|
@ -49,14 +49,15 @@ static bool s_save_state_selector_ui_open = false;
|
||||||
|
|
||||||
void ImGuiManager::RenderOverlays()
|
void ImGuiManager::RenderOverlays()
|
||||||
{
|
{
|
||||||
if (System::IsValid())
|
const System::State state = System::GetState();
|
||||||
|
if (state != System::State::Shutdown)
|
||||||
{
|
{
|
||||||
DrawPerformanceOverlay();
|
DrawPerformanceOverlay();
|
||||||
|
|
||||||
if (g_settings.display_show_enhancements)
|
if (g_settings.display_show_enhancements && state != System::State::Paused)
|
||||||
DrawEnhancementsOverlay();
|
DrawEnhancementsOverlay();
|
||||||
|
|
||||||
if (g_settings.display_show_inputs)
|
if (g_settings.display_show_inputs && state != System::State::Paused)
|
||||||
DrawInputsOverlay();
|
DrawInputsOverlay();
|
||||||
|
|
||||||
if (s_save_state_selector_ui_open)
|
if (s_save_state_selector_ui_open)
|
||||||
|
|
Loading…
Reference in a new issue