mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Global: Correct many endian types and casts.
This commit is contained in:
1 parent
1197795945
commit
9a3e5879bb
22 files changed
+103
-100
No files matched your search
@@ -1187,7 +1187,7 @@ void __KernelThreadingShutdown() {
|
||||
|
||||
std::string __KernelThreadingSummary() {
|
||||
PSPThread *t = __GetCurrentThread();
|
||||
return StringFromFormat("Cur thread: %s (attr %08x)", t ? t->GetName() : "(null)", t ? t->nt.attr : 0);
|
||||
return StringFromFormat("Cur thread: %s (attr %08x)", t ? t->GetName() : "(null)", t ? (u32)t->nt.attr : 0);
|
||||
}
|
||||
|
||||
const char *__KernelGetThreadName(SceUID threadID)
|
||||
@@ -1400,7 +1400,7 @@ u32 sceKernelGetThreadmanIdList(u32 type, u32 readBufPtr, u32 readBufSize, u32 i
|
||||
}
|
||||
|
||||
u32 total = 0;
|
||||
auto uids = PSPPointer<SceUID>::Create(readBufPtr);
|
||||
auto uids = PSPPointer<SceUID_le>::Create(readBufPtr);
|
||||
u32 error;
|
||||
if (type > 0 && type <= SCE_KERNEL_TMID_Tlspl) {
|
||||
DEBUG_LOG(SCEKERNEL, "sceKernelGetThreadmanIdList(%i, %08x, %i, %08x)", type, readBufPtr, readBufSize, idCountPtr);
|
||||
@@ -2020,7 +2020,7 @@ int __KernelStartThread(SceUID threadToStartID, int argSize, u32 argBlockPtr, bo
|
||||
return error;
|
||||
|
||||
PSPThread *cur = __GetCurrentThread();
|
||||
__KernelResetThread(startThread, cur ? cur->nt.currentPriority : 0);
|
||||
__KernelResetThread(startThread, cur ? (s32)cur->nt.currentPriority : 0);
|
||||
|
||||
u32 &sp = startThread->context.r[MIPS_REG_SP];
|
||||
// Force args means just use those as a0/a1 without any special treatment.
|
||||
|
||||
Reference in new issue
Block a user