mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 12:18:35 +01:00
Check kernel object types when looking up ids.
Some games misuse it, need to return an error.
This commit is contained in:
1 parent
45775d4fc2
commit
933c8abb55
12 files changed
+25
-9
No files matched your search
@@ -82,6 +82,7 @@ public:
|
||||
}
|
||||
|
||||
static u32 GetMissingErrorCode() { return SCE_KERNEL_ERROR_UNKNOWN_CBID; }
|
||||
static int GetStaticIDType() { return SCE_KERNEL_TMID_Callback; }
|
||||
int GetIDType() const { return SCE_KERNEL_TMID_Callback; }
|
||||
|
||||
virtual void DoState(PointerWrap &p)
|
||||
@@ -295,7 +296,7 @@ public:
|
||||
}
|
||||
|
||||
static u32 GetMissingErrorCode() { return SCE_KERNEL_ERROR_UNKNOWN_THID; }
|
||||
|
||||
static int GetStaticIDType() { return SCE_KERNEL_TMID_Thread; }
|
||||
int GetIDType() const { return SCE_KERNEL_TMID_Thread; }
|
||||
|
||||
bool AllocateStack(u32 &stackSize)
|
||||
|
||||
Reference in new issue
Block a user