forked from cafeberry/cafeberry
Fix Shadps4 crash
This commit is contained in:
@@ -9,16 +9,17 @@
|
||||
// (2) An offline ID, where there is also a primary login on the system. This has m_onlineID set up to copy the primary SceNpOnlineId, except with dummy[0] set to the controller ID of this other player
|
||||
// (3) An offline ID, where there isn't a primary PSN login on the system. This has SceNpOnlineId fully zeroed.
|
||||
|
||||
|
||||
#pragma pack(push, 4)
|
||||
class PlayerUID
|
||||
{
|
||||
char m_onlineID[SCE_NP_ONLINEID_MAX_LENGTH];
|
||||
// PS4 4JLibs needs exactly 28 bytes for playerUID,
|
||||
//char m_onlineID[SCE_NP_ONLINEID_MAX_LENGTH];
|
||||
char term;
|
||||
bool m_bSignedIntoPSN : 1;
|
||||
unsigned char m_quadrant : 2;
|
||||
uint8_t m_macAddress[SCE_NET_ETHER_ADDR_LEN];
|
||||
SceUserServiceUserId m_userID;
|
||||
|
||||
char m_padding[8];
|
||||
public:
|
||||
ULONGLONG XUID;
|
||||
|
||||
@@ -43,8 +44,7 @@ public:
|
||||
void setOnlineID(SceNpOnlineId& id, bool bSignedIntoPSN);
|
||||
void setUserID(unsigned int id);
|
||||
|
||||
|
||||
const char* getOnlineID() const { return m_onlineID; }
|
||||
const char* getOnlineID() const { return ""; }
|
||||
SceUserServiceUserId getUserID() const { return m_userID; }
|
||||
int getQuadrant() const { return m_quadrant; }
|
||||
bool isPrimaryUser() const; // only true if we're on the local machine and signed into the first quadrant;
|
||||
@@ -64,7 +64,7 @@ namespace std
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
|
||||
#ifndef DISABLE_PSN
|
||||
|
||||
Reference in New Issue
Block a user