mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Show the MEMSIZE parameter on the game screen if present in PARAM.SFO
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user