mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix save data manager dialog popup
This commit is contained in:
1 parent
48a0c0f068
commit
514f29d63b
2 files changed
+7
-2
No files matched your search
@@ -202,5 +202,5 @@ void InstallZipScreen::update() {
|
||||
std::shared_ptr<GameInfo> ginfo = g_gameInfoCache->GetInfo(screenManager()->getDrawContext(), savedataToOverwrite_, GameInfoFlags::FILE_TYPE | GameInfoFlags::PARAM_SFO | GameInfoFlags::ICON | GameInfoFlags::SIZE);
|
||||
existingSaveView_->Update(ginfo.get());
|
||||
}
|
||||
UIScreen::update();
|
||||
UIDialogScreenWithBackground::update();
|
||||
}
|
||||
@@ -121,7 +121,11 @@ SavedataView::SavedataView(UIContext &dc, GameInfo *ginfo, IdentifiedFileType ty
|
||||
"",
|
||||
"",
|
||||
showIcon,
|
||||
layoutParams) {}
|
||||
layoutParams) {
|
||||
if (ginfo) {
|
||||
Update(ginfo);
|
||||
}
|
||||
}
|
||||
|
||||
class SavedataPopupScreen : public PopupScreen {
|
||||
public:
|
||||
@@ -129,6 +133,7 @@ public:
|
||||
|
||||
const char *tag() const override { return "SavedataPopup"; }
|
||||
void update() override {
|
||||
PopupScreen::update();
|
||||
std::shared_ptr<GameInfo> ginfo = g_gameInfoCache->GetInfo(screenManager()->getDrawContext(), savePath_, GameInfoFlags::PARAM_SFO | GameInfoFlags::ICON | GameInfoFlags::SIZE);
|
||||
if (!ginfo->Ready(GameInfoFlags::PARAM_SFO)) {
|
||||
// Hm, this is no good. But hopefully the previous screen loaded it.
|
||||
|
||||
Reference in new issue
Block a user