InstallUpdateScreen: Also allow trying to run, for development purposes

This commit is contained in:
Henrik Rydgård
2026-08-31 11:02:32 +02:00
parent d2207e81d7
commit e21eb294d0
+7
View File
@@ -25,6 +25,7 @@
#include "Common/Thread/ThreadManager.h"
#include "Common/UI/UI.h"
#include "Common/UI/View.h"
#include "Common/UI/ScreenManager.h"
#include "Common/UI/ViewGroup.h"
#include "Core/Config.h"
@@ -33,6 +34,7 @@
#include "UI/InstallUpdateScreen.h"
#include "UI/MiscViews.h"
#include "UI/EmuScreen.h"
// An updater carries one file list per hardware revision, and anything the chosen model's list
// doesn't name isn't part of its firmware. Unpacking the model we claim to be keeps flash0
@@ -94,6 +96,11 @@ void InstallUpdateScreen::CreateDialogViews(UI::ViewGroup *parent) {
StartInstall();
});
Choice *runChoice = container->Add(new Choice(iz->T("Run"), ImageID("I_PLAY")));
runChoice->OnClick.Add([this](UI::EventParams &e) {
screenManager()->switchScreen(new EmuScreen(path_));
});
progressBar_ = container->Add(new ProgressBar());
progressBar_->SetVisibility(V_GONE);