mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-22 10:49:05 +02: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
@@ -42,6 +42,7 @@ struct VTimer : public KernelObject {
|
||||
const char *GetName() {return nvt.name;}
|
||||
const char *GetTypeName() {return "VTimer";}
|
||||
static u32 GetMissingErrorCode() { return SCE_KERNEL_ERROR_UNKNOWN_VTID; }
|
||||
static int GetStaticIDType() { return SCE_KERNEL_TMID_VTimer; }
|
||||
int GetIDType() const { return SCE_KERNEL_TMID_VTimer; }
|
||||
|
||||
virtual void DoState(PointerWrap &p) {
|
||||
|
||||
Reference in new issue
Block a user