CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/UI/InstallZipScreen.h
Views: 1401
// Copyright (c) 2013- PPSSPP Project.12// This program is free software: you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation, version 2.0 or later versions.56// This program is distributed in the hope that it will be useful,7// but WITHOUT ANY WARRANTY; without even the implied warranty of8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9// GNU General Public License 2.0 for more details.1011// A copy of the GPL 2.0 should have been included with the program.12// If not, see http://www.gnu.org/licenses/1314// Official git repository and contact information can be found at15// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.1617#pragma once1819#include <functional>2021#include "Common/File/Path.h"2223#include "Common/UI/View.h"24#include "Common/UI/UIScreen.h"2526#include "UI/MiscScreens.h"2728class SavedataView;2930class InstallZipScreen : public UIDialogScreenWithBackground {31public:32InstallZipScreen(const Path &zipPath);33void update() override;34bool key(const KeyInput &key) override;3536const char *tag() const override { return "InstallZip"; }3738protected:39void CreateViews() override;4041private:42UI::EventReturn OnInstall(UI::EventParams ¶ms);4344UI::Choice *installChoice_ = nullptr;45UI::Choice *backChoice_ = nullptr;46UI::TextView *doneView_ = nullptr;47SavedataView *existingSaveView_ = nullptr;48Path savedataToOverwrite_;49Path zipPath_;50std::vector<Path> destFolders_;51int destFolderChoice_ = 0;52ZipFileInfo zipFileInfo_{};53bool returnToHomebrew_ = true;54bool installStarted_ = false;55bool deleteZipFile_ = false;56};57585960