2013-12-05 13:14:15 +00: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 09:32:24 +00:00
|
|
|
#include <functional>
|
|
|
|
|
2020-10-04 18:48:47 +00:00
|
|
|
#include "Common/UI/View.h"
|
|
|
|
#include "Common/UI/UIScreen.h"
|
2013-12-05 13:14:15 +00:00
|
|
|
|
|
|
|
#include "UI/MiscScreens.h"
|
|
|
|
|
|
|
|
class InstallZipScreen : public UIDialogScreenWithBackground {
|
|
|
|
public:
|
2021-10-17 00:53:05 +00:00
|
|
|
InstallZipScreen(const Path &zipPath);
|
2022-12-11 04:32:12 +00:00
|
|
|
void update() override;
|
|
|
|
bool key(const KeyInput &key) override;
|
2013-12-05 13:14:15 +00:00
|
|
|
|
2022-09-17 20:29:33 +00:00
|
|
|
const char *tag() const override { return "InstallZip"; }
|
2022-09-16 08:14:00 +00:00
|
|
|
|
2013-12-05 13:14:15 +00:00
|
|
|
protected:
|
2022-12-11 04:32:12 +00:00
|
|
|
void CreateViews() override;
|
2013-12-05 13:14:15 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
UI::EventReturn OnInstall(UI::EventParams ¶ms);
|
|
|
|
|
2019-07-08 21:03:27 +00:00
|
|
|
UI::Choice *installChoice_ = nullptr;
|
|
|
|
UI::Choice *backChoice_ = nullptr;
|
|
|
|
UI::ProgressBar *progressBar_ = nullptr;
|
|
|
|
UI::TextView *doneView_ = nullptr;
|
2021-05-09 16:38:48 +00:00
|
|
|
Path zipPath_;
|
2019-07-15 00:43:51 +00:00
|
|
|
bool returnToHomebrew_ = true;
|
2019-07-08 21:03:27 +00:00
|
|
|
bool installStarted_ = false;
|
|
|
|
bool deleteZipFile_ = false;
|
2013-12-05 13:14:15 +00:00
|
|
|
};
|
|
|
|
|