mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
cleanup ugly RE code
This commit is contained in:
parent
0e7470ecc5
commit
09d92e2103
@ -14,22 +14,21 @@ u32 PS4_SYSV_ABI getEvent(sceCompanionUtilContext* ctx, sceCompanionUtilEvent* o
|
||||
u32 return_var;
|
||||
|
||||
if (outEvent == 0) {
|
||||
return_var = ORBIS_COMPANION_UTIL_INVALID_ARGUMENT;
|
||||
return ORBIS_COMPANION_UTIL_INVALID_ARGUMENT;
|
||||
}
|
||||
|
||||
if (ctx == nullptr) {
|
||||
return_var = ORBIS_COMPANION_UTIL_INVALID_POINTER;
|
||||
} else {
|
||||
return ORBIS_COMPANION_UTIL_INVALID_POINTER;
|
||||
}
|
||||
|
||||
uint8_t* base = ctx->blob;
|
||||
int flag = *reinterpret_cast<int*>(base + 0x178);
|
||||
if (flag == 0) {
|
||||
return_var = ORBIS_COMPANION_UTIL_NO_EVENT;
|
||||
} else {
|
||||
return_var = ORBIS_COMPANION_UTIL_OK;
|
||||
}
|
||||
return ORBIS_COMPANION_UTIL_NO_EVENT;
|
||||
}
|
||||
|
||||
return return_var;
|
||||
return ORBIS_COMPANION_UTIL_OK;
|
||||
|
||||
}
|
||||
|
||||
s32 PS4_SYSV_ABI sceCompanionUtilGetEvent(sceCompanionUtilEvent* outEvent) {
|
||||
|
Loading…
Reference in New Issue
Block a user