From e7919da1bd7248a60e0cf0f42a45fcaf1f74c595 Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Sat, 18 Jan 2025 23:51:00 +0000 Subject: [PATCH] game_window: change window title to "Unleashed Recompiled" --- UnleashedRecomp/ui/game_window.cpp | 11 ++++++++--- UnleashedRecomp/user/config.h | 4 +++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/UnleashedRecomp/ui/game_window.cpp b/UnleashedRecomp/ui/game_window.cpp index 4460240..c13bd9f 100644 --- a/UnleashedRecomp/ui/game_window.cpp +++ b/UnleashedRecomp/ui/game_window.cpp @@ -298,9 +298,14 @@ void GameWindow::SetIcon(bool isNight) const char* GameWindow::GetTitle() { - return Config::Language == ELanguage::Japanese - ? "SONIC WORLD ADVENTURE" - : "SONIC UNLEASHED"; + if (Config::UseOfficialTitleOnTitleBar) + { + return Config::Language == ELanguage::Japanese + ? "SONIC WORLD ADVENTURE" + : "SONIC UNLEASHED"; + } + + return "Unleashed Recompiled"; } void GameWindow::SetTitle(const char* title) diff --git a/UnleashedRecomp/user/config.h b/UnleashedRecomp/user/config.h index 9f84f27..d51ee15 100644 --- a/UnleashedRecomp/user/config.h +++ b/UnleashedRecomp/user/config.h @@ -373,7 +373,8 @@ public: if (Callback) Callback(this); - IsLoadedFromConfig = true; + if (pSection->contains(Name)) + IsLoadedFromConfig = true; } } @@ -683,6 +684,7 @@ public: CONFIG_DEFINE_HIDDEN("Exports", bool, HomingAttackOnBoost, true); CONFIG_DEFINE_HIDDEN("Exports", bool, SaveScoreAtCheckpoints, false); CONFIG_DEFINE_HIDDEN("Exports", bool, SkipIntroLogos, false); + CONFIG_DEFINE_HIDDEN("Exports", bool, UseOfficialTitleOnTitleBar, false); static std::filesystem::path GetConfigPath() {