Fix firmware version detection and NAND erased

Load the PARAM.SFO before pushing the installer — the same g_gameInfoCache pattern the game list already uses for update PBPs — and pass info->GetTitle(). --By MIMO v2.6 Pro
This commit is contained in:
Narugakuruga authored and GitHub committed 2026-11-12 15:43:36 +08:00
1 parent 1a6d0c1ff0
commit 0ec82a7bf4
1 file changed
+5 -1
+5 -1
View File
@@ -34,6 +34,7 @@
#include "Core/Util/PathUtil.h"
#include "UI/FirmwareScreen.h"
#include "UI/GameInfoCache.h"
#include "UI/InstallUpdateScreen.h"
#include "UI/MiscViews.h"
@@ -235,7 +236,10 @@ void FirmwareScreen::BrowseForUpdater() {
auto iz = GetI18NCategory(I18NCat::INSTALLZIP);
System_BrowseForFile(GetRequesterToken(), iz->T("Install PSP firmware update"), BrowseFileType::BOOTABLE,
[this](std::string_view value, int) {
screenManager()->push(new InstallUpdateScreen(Path(value), "", false));
const Path path(value);
std::shared_ptr<GameInfo> info = g_gameInfoCache->GetInfo(nullptr, path, GameInfoFlags::PARAM_SFO, nullptr, GameInfoFlags::EMPTY, TaskPriority::HIGH);
info->WaitUntilReady(GameInfoFlags::PARAM_SFO);
screenManager()->push(new InstallUpdateScreen(path, info->GetTitle(), false));
});
}