game_window: change window title to "Unleashed Recompiled"

This commit is contained in:
Hyper 2025-01-18 23:51:00 +00:00
parent 513a66657f
commit e7919da1bd
2 changed files with 11 additions and 4 deletions

View file

@ -298,9 +298,14 @@ void GameWindow::SetIcon(bool isNight)
const char* GameWindow::GetTitle() const char* GameWindow::GetTitle()
{ {
return Config::Language == ELanguage::Japanese if (Config::UseOfficialTitleOnTitleBar)
? "SONIC WORLD ADVENTURE" {
: "SONIC UNLEASHED"; return Config::Language == ELanguage::Japanese
? "SONIC WORLD ADVENTURE"
: "SONIC UNLEASHED";
}
return "Unleashed Recompiled";
} }
void GameWindow::SetTitle(const char* title) void GameWindow::SetTitle(const char* title)

View file

@ -373,7 +373,8 @@ public:
if (Callback) if (Callback)
Callback(this); 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, HomingAttackOnBoost, true);
CONFIG_DEFINE_HIDDEN("Exports", bool, SaveScoreAtCheckpoints, false); CONFIG_DEFINE_HIDDEN("Exports", bool, SaveScoreAtCheckpoints, false);
CONFIG_DEFINE_HIDDEN("Exports", bool, SkipIntroLogos, false); CONFIG_DEFINE_HIDDEN("Exports", bool, SkipIntroLogos, false);
CONFIG_DEFINE_HIDDEN("Exports", bool, UseOfficialTitleOnTitleBar, false);
static std::filesystem::path GetConfigPath() static std::filesystem::path GetConfigPath()
{ {