Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/Core/Dialog/PSPNpSigninDialog.h
5664 views
1
// Copyright (c) 2012- PPSSPP Project.
2
3
// This program is free software: you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation, version 2.0 or later versions.
6
7
// This program is distributed in the hope that it will be useful,
8
// but WITHOUT ANY WARRANTY; without even the implied warranty of
9
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
// GNU General Public License 2.0 for more details.
11
12
// A copy of the GPL 2.0 should have been included with the program.
13
// If not, see http://www.gnu.org/licenses/
14
15
// Official git repository and contact information can be found at
16
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
17
18
#pragma once
19
20
#include "Core/Dialog/PSPDialog.h"
21
#include "Core/MemMapHelpers.h"
22
23
struct SceUtilityNpSigninParam {
24
pspUtilityDialogCommon 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?
26
int npSigninStatus;
27
int unknown1;
28
int unknown2;
29
int unknown3;
30
};
31
32
class PSPNpSigninDialog : public PSPDialog {
33
public:
34
PSPNpSigninDialog(UtilityDialogType type) : PSPDialog(type) {}
35
36
int Init(u32 paramAddr);
37
int Update(int animSpeed) override;
38
int Shutdown(bool force = false) override;
39
void DoState(PointerWrap &p) override;
40
pspUtilityDialogCommon* GetCommonParam() override;
41
42
protected:
43
bool UseAutoStatus() override {
44
return false;
45
}
46
47
private:
48
void DrawBanner();
49
void DrawIndicator();
50
void DrawLogo();
51
52
SceUtilityNpSigninParam request = {};
53
u32 requestAddr = 0;
54
//int npSigninResult = -1;
55
56
u64 startTime = 0;
57
int step = 0;
58
};
59
60