mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 11:13:44 +01:00
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:
1 parent
b9f46e2acb
commit
f38cbfd7b1
1 file changed
+3
-3
+3
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user