mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
e8b653ddf3
commit
4626e48980
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -253,6 +253,7 @@ public:
|
|||
wxString OutputField;
|
||||
wxString OutputProgressive;
|
||||
wxString OutputInterlaced;
|
||||
wxString Paused;
|
||||
wxString TitleTemplate;
|
||||
};
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue