mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 23:45:12 +00:00
vm::atomic update, small fixes
This commit is contained in:
parent
e5a485e50b
commit
a4a4e572a0
10 changed files with 145 additions and 123 deletions
|
|
@ -39,10 +39,9 @@ s64 spursAttachLv2EventQueue(vm::ptr<CellSpurs> spurs, u32 queue, vm::ptr<u8> po
|
|||
return CELL_SPURS_CORE_ERROR_STAT;
|
||||
}
|
||||
|
||||
u32 unk1 = 0;
|
||||
#ifdef PRX_DEBUG
|
||||
unk1 = cb_call<u32>(GetCurrentPPUThread(), libsre + 0x10900, libsre_rtoc);
|
||||
#endif
|
||||
s32 sdk_ver;
|
||||
assert(process_get_sdk_version(process_getpid(), sdk_ver) == CELL_OK);
|
||||
if (sdk_ver == -1) sdk_ver = 0x460000;
|
||||
|
||||
u8 _port = 0x3f;
|
||||
u8 port_start = 0x10;
|
||||
|
|
@ -54,7 +53,7 @@ s64 spursAttachLv2EventQueue(vm::ptr<CellSpurs> spurs, u32 queue, vm::ptr<u8> po
|
|||
{
|
||||
return CELL_SPURS_CORE_ERROR_INVAL;
|
||||
}
|
||||
if (unk1 <= 0x17ffff && _port > 0xf)
|
||||
if (sdk_ver <= 0x17ffff && _port > 0xf)
|
||||
{
|
||||
return CELL_SPURS_CORE_ERROR_PERM;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue