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

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

View file

@ -373,6 +373,7 @@ public:
if (Callback) if (Callback)
Callback(this); Callback(this);
if (pSection->contains(Name))
IsLoadedFromConfig = true; 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()
{ {