early-access version 1684
This commit is contained in:
parent
3347dbfb2b
commit
82b9236ae2
2 changed files with 7 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 1683.
|
This is the source code for early-access 1684.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
|
|
@ -2751,24 +2751,19 @@ void GMainWindow::MigrateConfigFiles() {
|
||||||
|
|
||||||
void GMainWindow::UpdateWindowTitle(const std::string& title_name,
|
void GMainWindow::UpdateWindowTitle(const std::string& title_name,
|
||||||
const std::string& title_version) {
|
const std::string& title_version) {
|
||||||
const auto full_name = std::string(Common::g_build_fullname);
|
|
||||||
const auto branch_name = std::string(Common::g_scm_branch);
|
const auto branch_name = std::string(Common::g_scm_branch);
|
||||||
const auto description = std::string(Common::g_scm_desc);
|
const auto description = std::string(Common::g_scm_desc);
|
||||||
const auto build_id = std::string(Common::g_build_id);
|
const auto build_id = std::string(Common::g_build_id);
|
||||||
|
|
||||||
const auto date =
|
const auto yuzu_title = fmt::format("yuzu | {}-{}", branch_name, description);
|
||||||
QDateTime::currentDateTime().toString(QStringLiteral("yyyy-MM-dd")).toStdString();
|
const auto override_title = fmt::format(std::string(Common::g_title_bar_format_idle), build_id);
|
||||||
|
const auto window_title = override_title.empty() ? yuzu_title : override_title;
|
||||||
|
|
||||||
if (title_name.empty()) {
|
if (title_name.empty()) {
|
||||||
const auto fmt = std::string(Common::g_title_bar_format_idle);
|
setWindowTitle(QString::fromStdString(window_title));
|
||||||
setWindowTitle(QString::fromStdString(fmt::format(fmt.empty() ? "yuzu {0}| {1}-{2}" : fmt,
|
|
||||||
full_name, branch_name, description,
|
|
||||||
std::string{}, date, build_id)));
|
|
||||||
} else {
|
} else {
|
||||||
const auto fmt = std::string(Common::g_title_bar_format_running);
|
const auto run_title = fmt::format("{} | {} | {}", window_title, title_name, title_version);
|
||||||
setWindowTitle(QString::fromStdString(
|
setWindowTitle(QString::fromStdString(run_title));
|
||||||
fmt::format(fmt.empty() ? "yuzu {0}| {3} | {6} | {1}-{2}" : fmt, full_name, branch_name,
|
|
||||||
description, title_name, date, build_id, title_version)));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue