From f38cbfd7b1a49139a80b366c7780d4531d633ef9 Mon Sep 17 00:00:00 2001 From: James0124 Date: Sun, 9 Aug 2026 07:32:23 +0900 Subject: [PATCH] Show the (fallback) title on the game info screen even when there's no region ID The fallback title was not shown on the game info screen when `PARAM.SFO` was missing. Hoist the `TextView` creation from the `!regionID.empty()` branch. --- UI/GameScreen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UI/GameScreen.cpp b/UI/GameScreen.cpp index 8f46736091..b654674330 100644 --- a/UI/GameScreen.cpp +++ b/UI/GameScreen.cpp @@ -330,12 +330,12 @@ void GameScreen::CreateContentViews(UI::ViewGroup *parent) { std::string title = info_->GetTitle(); if (knownFlags_ & GameInfoFlags::PARAM_SFO) { + TextView* tvTitle = mainGameInfo->Add(new TextView(title, ALIGN_LEFT | FLAG_WRAP_TEXT, false, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT))); + tvTitle->SetShadow(true); + std::string regionID = ReplaceAll(info_->id_version, "_", " v"); if (!regionID.empty()) { regionID += ": "; - - TextView *tvTitle = mainGameInfo->Add(new TextView(title, ALIGN_LEFT | FLAG_WRAP_TEXT, false, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT))); - tvTitle->SetShadow(true); } if (info_->region != GameRegion::UNKNOWN) {