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.
This commit is contained in:
James0124 authored and Henrik Rydgård committed 2026-08-10 01:01:39 +02:00
1 parent b9f46e2acb
commit f38cbfd7b1
1 file changed
+3 -3
+3 -3
View File
@@ -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) {