2013-12-05 14:14:15 +01:00
|
|
|
// Copyright (c) 2013- PPSSPP Project.
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, version 2.0 or later versions.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official git repository and contact information can be found at
|
|
|
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2016-10-12 11:32:24 +02:00
|
|
|
#include <functional>
|
|
|
|
|
2020-10-04 20:48:47 +02:00
|
|
|
#include "Common/UI/View.h"
|
|
|
|
#include "Common/UI/UIScreen.h"
|
2013-12-05 14:14:15 +01:00
|
|
|
|
|
|
|
#include "UI/MiscScreens.h"
|
|
|
|
|
|
|
|
class InstallZipScreen : public UIDialogScreenWithBackground {
|
|
|
|
public:
|
2021-10-16 17:53:05 -07:00
|
|
|
InstallZipScreen(const Path &zipPath);
|
2022-12-10 20:32:12 -08:00
|
|
|
void update() override;
|
|
|
|
bool key(const KeyInput &key) override;
|
2013-12-05 14:14:15 +01:00
|
|
|
|
2022-09-17 13:29:33 -07:00
|
|
|
const char *tag() const override { return "InstallZip"; }
|
2022-09-16 10:14:00 +02:00
|
|
|
|
2013-12-05 14:14:15 +01:00
|
|
|
protected:
|
2022-12-10 20:32:12 -08:00
|
|
|
void CreateViews() override;
|
2013-12-05 14:14:15 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
UI::EventReturn OnInstall(UI::EventParams ¶ms);
|
|
|
|
|
2019-07-08 23:03:27 +02:00
|
|
|
UI::Choice *installChoice_ = nullptr;
|
|
|
|
UI::Choice *backChoice_ = nullptr;
|
|
|
|
UI::ProgressBar *progressBar_ = nullptr;
|
|
|
|
UI::TextView *doneView_ = nullptr;
|
2021-05-09 18:38:48 +02:00
|
|
|
Path zipPath_;
|
2019-07-14 17:43:51 -07:00
|
|
|
bool returnToHomebrew_ = true;
|
2019-07-08 23:03:27 +02:00
|
|
|
bool installStarted_ = false;
|
|
|
|
bool deleteZipFile_ = false;
|
2013-12-05 14:14:15 +01:00
|
|
|
};
|
|
|
|
|