GS window title: add <PAUSED> when paused

Mostly relevant if the GS window is set to not hide while paused, but also shows
when the emulation is paused due to plugin config etc.

The string <PAUSED> is configurable via the template at PCSX2_ui.ini (including
making it empty) but currently it always appear at the begining of the title.
This commit is contained in:
Avi Halachmi (:avih) 2016-01-03 22:09:08 +02:00
parent e8b653ddf3
commit 4626e48980
3 changed files with 6 additions and 1 deletions

View File

@ -939,7 +939,8 @@ AppConfig::UiTemplateOptions::UiTemplateOptions()
OutputField = L"Field";
OutputProgressive = L"Progressive";
OutputInterlaced = L"Interlaced";
TitleTemplate = L"Slot: ${slot} | Speed: ${speed} (${vfps}) | Limiter: ${limiter} | ${gsdx} | ${omodei} | ${cpuusage}";
Paused = L"<PAUSED> ";
TitleTemplate = L"${pause}Slot: ${slot} | Speed: ${speed} (${vfps}) | Limiter: ${limiter} | ${gsdx} | ${omodei} | ${cpuusage}";
}
void AppConfig::UiTemplateOptions::LoadSave(IniInterface& ini)
@ -954,6 +955,7 @@ void AppConfig::UiTemplateOptions::LoadSave(IniInterface& ini)
IniEntry(OutputField);
IniEntry(OutputProgressive);
IniEntry(OutputInterlaced);
IniEntry(Paused);
IniEntry(TitleTemplate);
}

View File

@ -253,6 +253,7 @@ public:
wxString OutputField;
wxString OutputProgressive;
wxString OutputInterlaced;
wxString Paused;
wxString TitleTemplate;
};

View File

@ -622,6 +622,8 @@ void GSFrame::OnUpdateTitle( wxTimerEvent& evt )
title.Replace(L"${omodef}", omodef);
title.Replace(L"${omodei}", omodei);
title.Replace(L"${gsdx}", fromUTF8(gsDest));
if (CoreThread.IsPaused())
title = templates.Paused + title;
SetTitle(title);
}