mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-28 02:26:07 +00:00
hot fix: fixed sceNpGetOnlineId function
This commit is contained in:
parent
b62d2f839d
commit
70430313e3
|
@ -987,8 +987,12 @@ int PS4_SYSV_ABI sceNpGetNpReachabilityState() {
|
|||
}
|
||||
|
||||
int PS4_SYSV_ABI sceNpGetOnlineId(s32 userId, OrbisNpOnlineId* onlineId) {
|
||||
LOG_DEBUG(Lib_NpManager, "called returned sign out");
|
||||
return ORBIS_NP_ERROR_SIGNED_OUT;
|
||||
LOG_DEBUG(Lib_NpManager, "userId {}", userId);
|
||||
std::string name = Config::getUserName();
|
||||
// Fill the unused stuffs to 0
|
||||
memset(onlineId, 0, sizeof(*onlineId));
|
||||
strcpy(onlineId->data, name.c_str());
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceNpGetParentalControlInfo() {
|
||||
|
|
Loading…
Reference in a new issue