mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add ERROR_PGD_INVALID_HEADER , 0x80510204
This commit is contained in:
parent
f6eaec06b9
commit
a64f4839be
1 changed files with 3 additions and 1 deletions
|
@ -52,6 +52,8 @@ const int ERROR_MEMSTICK_DEVCTL_BAD_PARAMS = 0x80220081;
|
|||
const int ERROR_MEMSTICK_DEVCTL_TOO_MANY_CALLBACKS = 0x80220082;
|
||||
const int ERROR_KERNEL_BAD_FILE_DESCRIPTOR = 0x80020323;
|
||||
|
||||
const int ERROR_PGD_INVALID_HEADER = 0x80510204;
|
||||
|
||||
#define PSP_DEV_TYPE_ALIAS 0x20
|
||||
|
||||
/*
|
||||
|
@ -1384,7 +1386,7 @@ int __IoIoctl(u32 id, u32 cmd, u32 indataPtr, u32 inlen, u32 outdataPtr, u32 out
|
|||
pspFileSystem.SeekFile(f->handle, (s32)0, FILEMOVE_BEGIN);
|
||||
if(memcmp(pgd_header, pgd_magic, 4)==0){
|
||||
// File is PGD file, but key mismatch
|
||||
return 0x80510204;
|
||||
return ERROR_PGD_INVALID_HEADER;
|
||||
}else{
|
||||
// File is decrypted.
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue