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/Core/Dialog/PSPNpSigninDialog.h
Views: 1401
// Copyright (c) 2012- 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 "Core/Dialog/PSPDialog.h"20#include "Core/MemMapHelpers.h"212223struct SceUtilityNpSigninParam {24pspUtilityDialogCommon common;25// Initially all zero? Or is there a possibility for one of these unknown to be a buffer to a packet data if it wasn't null?26int npSigninStatus;27int unknown1;28int unknown2;29int unknown3;30};313233class PSPNpSigninDialog: public PSPDialog {34public:35PSPNpSigninDialog(UtilityDialogType type);36~PSPNpSigninDialog();3738int Init(u32 paramAddr);39int Update(int animSpeed) override;40int Shutdown(bool force = false) override;41void DoState(PointerWrap &p) override;42pspUtilityDialogCommon* GetCommonParam() override;4344protected:45bool UseAutoStatus() override {46return false;47}4849private:50void DisplayMessage(std::string_view text1, std::string_view text2a = "", std::string_view text2b = "", std::string_view text3a = "", std::string_view text3b = "", bool hasYesNo = false, bool hasOK = false);51void DrawBanner();52void DrawIndicator();53void DrawLogo();5455SceUtilityNpSigninParam request = {};56u32 requestAddr = 0;57//int npSigninResult = -1;5859int yesnoChoice = 0;60float scrollPos_ = 0.0f;61int framesUpHeld_ = 0;62int framesDownHeld_ = 0;6364u64 startTime = 0;65int step = 0;66};676869