Community feedback

Updated naming convention
Exposed the game name to Emulator for other uses
Fixed bug with XDBF parsing
This commit is contained in:
x1nixmzeng
2016-01-08 22:55:37 +00:00
parent e4cef38d95
commit 5fa9499a12
8 changed files with 94 additions and 54 deletions

View File

@@ -288,11 +288,16 @@ void EmulatorWindow::ShowHelpWebsite() { LaunchBrowser("http://xenia.jp"); }
void EmulatorWindow::UpdateTitle() {
std::wstring title(base_title_);
if (Clock::guest_time_scalar() != 1.0) {
title += L" (@";
title += xe::to_wstring(std::to_string(Clock::guest_time_scalar()));
title += L"x)";
const std::wstring &game_title(emulator()->game_title());
if (!game_title.empty()) {
title = game_title + L" - " + title;
}
if (Clock::guest_time_scalar() != 1.0) {
title += xe::format_string(L" (@%.2fx)", Clock::guest_time_scalar());
}
window_->set_title(title);
}