Check kernel object types when looking up ids.
Some games misuse it, need to return an error.
This commit is contained in:
parent
45775d4fc2
commit
933c8abb55
12 changed files with 25 additions and 9 deletions
|
@ -40,6 +40,7 @@ struct Alarm : public KernelObject
|
|||
const char *GetName() {return "[Alarm]";}
|
||||
const char *GetTypeName() {return "Alarm";}
|
||||
static u32 GetMissingErrorCode() { return SCE_KERNEL_ERROR_UNKNOWN_ALMID; }
|
||||
static int GetStaticIDType() { return SCE_KERNEL_TMID_Alarm; }
|
||||
int GetIDType() const { return SCE_KERNEL_TMID_Alarm; }
|
||||
|
||||
virtual void DoState(PointerWrap &p)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue