mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
Merge pull request #23048 from Narugakuruga/patch-41
Fix firmware version detection in update screen
This commit is contained in:
1 file changed
+5
-1
@@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user