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/GameScreen.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 "UI/MiscScreens.h"22#include "Common/UI/UIScreen.h"23#include "Common/File/Path.h"2425class NoticeView;2627// Game screen: Allows you to start a game, delete saves, delete the game,28// set game specific settings, etc.2930// Uses GameInfoCache heavily to implement the functionality.31// Should possibly merge this with the PauseScreen.3233class GameScreen : public UIDialogScreenWithGameBackground {34public:35GameScreen(const Path &gamePath, bool inGame);36~GameScreen();3738void update() override;3940ScreenRenderFlags render(ScreenRenderMode mode) override;4142const char *tag() const override { return "Game"; }4344protected:45void CreateViews() override;46void CallbackDeleteConfig(bool yes);47void CallbackDeleteSaveData(bool yes);48void CallbackDeleteGame(bool yes);49bool isRecentGame(const Path &gamePath);5051private:52UI::Choice *AddOtherChoice(UI::Choice *choice);5354// Event handlers55UI::EventReturn OnPlay(UI::EventParams &e);56UI::EventReturn OnGameSettings(UI::EventParams &e);57UI::EventReturn OnDeleteSaveData(UI::EventParams &e);58UI::EventReturn OnDeleteGame(UI::EventParams &e);59UI::EventReturn OnSwitchBack(UI::EventParams &e);60UI::EventReturn OnRemoveFromRecent(UI::EventParams &e);61UI::EventReturn OnShowInFolder(UI::EventParams &e);62UI::EventReturn OnCreateConfig(UI::EventParams &e);63UI::EventReturn OnDeleteConfig(UI::EventParams &e);64UI::EventReturn OnCwCheat(UI::EventParams &e);65UI::EventReturn OnSetBackground(UI::EventParams &e);66UI::EventReturn OnDoCRC32(UI::EventParams& e);6768// As we load metadata in the background, we need to be able to update these after the fact.69UI::TextView *tvTitle_ = nullptr;70UI::TextView *tvGameSize_ = nullptr;71UI::TextView *tvSaveDataSize_ = nullptr;72UI::TextView *tvInstallDataSize_ = nullptr;73UI::TextView *tvRegion_ = nullptr;74UI::TextView *tvPlayTime_ = nullptr;75UI::TextView *tvCRC_ = nullptr;76UI::TextView *tvID_ = nullptr;77UI::Button *tvCRCCopy_ = nullptr;78NoticeView *tvVerified_ = nullptr;7980UI::Choice *btnGameSettings_ = nullptr;81UI::Choice *btnCreateGameConfig_ = nullptr;82UI::Choice *btnDeleteGameConfig_ = nullptr;83UI::Choice *btnDeleteSaveData_ = nullptr;84UI::Choice *btnSetBackground_ = nullptr;8586UI::Choice *btnCalcCRC_ = nullptr;8788std::vector<UI::Choice *> otherChoices_;89std::vector<Path> saveDirs;90std::string CRC32string;9192bool isHomebrew_ = false;93bool inGame_ = false;94};959697