Show the MEMSIZE parameter on the game screen if present in PARAM.SFO

This commit is contained in:
Henrik Rydgård
2026-05-13 16:13:50 +02:00
parent 5fe00f14b9
commit 6165edd445
+12
View File
@@ -347,6 +347,18 @@ void GameScreen::CreateContentViews(UI::ViewGroup *parent) {
if (!info_->errorString.empty()) { if (!info_->errorString.empty()) {
mainGameInfo->Add(new NoticeView(NoticeLevel::WARN, info_->errorString, "")); mainGameInfo->Add(new NoticeView(NoticeLevel::WARN, info_->errorString, ""));
} }
// Add information about extra memory (used by some mods).
auto keys = info_->GetParamSFO().GetKeys();
for (auto &iter : keys) {
if (iter == "MEMSIZE") {
mainGameInfo->Add(new TextView(iter + StringFromFormat(": %d", info_->GetParamSFO().GetValueInt(iter))))->SetTextSize(UI::TextSize::Small);
}
// We already show the version elsewhere.
// else if (iter == "DISC_VERSION") {
// mainGameInfo->Add(new TextView(iter + ": " + info_->GetParamSFO().GetValueString(iter)));
// }
}
} }
LinearLayout *infoLayout = new LinearLayout(ORIENT_VERTICAL, new AnchorLayoutParams(10, 200, NONE, NONE)); LinearLayout *infoLayout = new LinearLayout(ORIENT_VERTICAL, new AnchorLayoutParams(10, 200, NONE, NONE));