mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
less Memory::GetPointer
This commit is contained in:
1 parent
2822ce2737
commit
6db4ea2ad1
11 files changed
+53
-63
No files matched your search
@@ -452,13 +452,12 @@ void sceKernelReferThreadStatus()
|
||||
if (t)
|
||||
{
|
||||
DEBUG_LOG(HLE,"sceKernelReferThreadStatus(%i, %08x)", threadID, PARAM(1));
|
||||
void *outptr = (void*)Memory::GetPointer(PARAM(1));
|
||||
u32 wantedSize = *(u32 *)outptr;
|
||||
u32 wantedSize = Memory::Read_U32(PARAM(1));
|
||||
u32 sz = sizeof(NativeThread);
|
||||
if (wantedSize) {
|
||||
t->nt.nativeSize = sz = std::min(sz, wantedSize);
|
||||
}
|
||||
memcpy(outptr, &(t->nt), sz);
|
||||
Memory::Memcpy(PARAM(1), &(t->nt), sz);
|
||||
RETURN(0);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user