From 6165edd445d297904965411ea7d3d2ee3b46c0ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 13 May 2026 16:13:50 +0200 Subject: [PATCH] Show the MEMSIZE parameter on the game screen if present in PARAM.SFO --- UI/GameScreen.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/UI/GameScreen.cpp b/UI/GameScreen.cpp index cd46f2fbce..068c603c84 100644 --- a/UI/GameScreen.cpp +++ b/UI/GameScreen.cpp @@ -347,6 +347,18 @@ void GameScreen::CreateContentViews(UI::ViewGroup *parent) { if (!info_->errorString.empty()) { 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));