add ps4 support

This commit is contained in:
2026-08-02 22:06:27 +03:00
parent 94f1cefcf9
commit 92209cf909
36 changed files with 257 additions and 123 deletions
+5 -1
View File
@@ -20,6 +20,7 @@ class PlayerUID
SceUserServiceUserId m_userID;
public:
ULONGLONG XUID;
class Hash
{
@@ -30,6 +31,8 @@ public:
PlayerUID();
PlayerUID(SceUserServiceUserId userID, SceNpOnlineId& onlineID, bool bSignedInPSN, int quadrant);
PlayerUID(std::wstring fromString);
PlayerUID(ULONGLONG xuid) { XUID = xuid; }
operator ULONGLONG() const { return XUID; }
bool operator==(const PlayerUID& rhs) const;
bool operator!=(const PlayerUID& rhs);
@@ -64,7 +67,7 @@ namespace std
#ifndef DISABLE_PSN
class GameSessionUID
{
char m_onlineID[SCE_NP_ONLINEID_MAX_LENGTH];
@@ -83,3 +86,4 @@ public:
int getQuadrant() const { return m_quadrant; }
bool isSignedIntoPSN() const { return m_bSignedIntoPSN; }
};
#endif