[App] Improve title tracking.

[App] Improve title tracking.
[App] Show title version in emulator window title, when available.
This commit is contained in:
gibbed
2021-05-01 17:18:38 -05:00
committed by Rick Gibbed
parent 0419a9f13d
commit ea1f2b114a
3 changed files with 71 additions and 22 deletions

View File

@@ -435,7 +435,13 @@ void EmulatorWindow::UpdateTitle() {
// Title information, if available
if (emulator()->is_title_open()) {
sb.AppendFormat(u8" | [{:08X}]", emulator()->title_id());
sb.AppendFormat(u8" | [{:08X}", emulator()->title_id());
auto title_version = emulator()->title_version();
if (!title_version.empty()) {
sb.Append(u8" v");
sb.Append(title_version);
}
sb.Append(u8"]");
auto title_name = emulator()->title_name();
if (!title_name.empty()) {