From a64f4839be77eabb1c471f766c454c7d0844db0b Mon Sep 17 00:00:00 2001 From: raven02 Date: Tue, 19 Mar 2013 07:53:21 +0800 Subject: [PATCH] Add ERROR_PGD_INVALID_HEADER , 0x80510204 --- Core/HLE/sceIo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceIo.cpp b/Core/HLE/sceIo.cpp index a24c2fed75..9f404eb2d8 100644 --- a/Core/HLE/sceIo.cpp +++ b/Core/HLE/sceIo.cpp @@ -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;