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/CwCheatScreen.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 <cstdint>20#include <functional>2122#include "Common/UI/View.h"23#include "Common/UI/UIScreen.h"24#include "Common/UI/Context.h"25#include "UI/MiscScreens.h"2627struct CheatFileInfo;28class CWCheatEngine;2930class CwCheatScreen : public UIDialogScreenWithGameBackground {31public:32CwCheatScreen(const Path &gamePath);33~CwCheatScreen();3435bool TryLoadCheatInfo();3637UI::EventReturn OnAddCheat(UI::EventParams ¶ms);38UI::EventReturn OnImportCheat(UI::EventParams ¶ms);39UI::EventReturn OnImportBrowse(UI::EventParams ¶ms);40UI::EventReturn OnEditCheatFile(UI::EventParams ¶ms);41UI::EventReturn OnDisableAll(UI::EventParams ¶ms);4243void update() override;44void onFinish(DialogResult result) override;4546const char *tag() const override { return "CwCheat"; }4748protected:49void CreateViews() override;5051private:52UI::EventReturn OnCheckBox(int index);53bool ImportCheats(const Path &cheatFile);5455enum { INDEX_ALL = -1 };56bool HasCheatWithName(const std::string &name);57bool RebuildCheatFile(int index);5859UI::ScrollView *rightScroll_ = nullptr;60UI::TextView *errorMessageView_ = nullptr;6162CWCheatEngine *engine_ = nullptr;63std::vector<CheatFileInfo> fileInfo_;64std::string gameID_;65int fileCheckCounter_ = 0;66uint64_t fileCheckHash_ = 0;67bool enableAllFlag_ = false;68};697071