From d2d07abcc53d257c0026041c9d4839a9019871b3 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 9 Jul 2018 13:09:35 +0300 Subject: [PATCH] cellSaveData: print SECUREFILE secureId This can help to decrypt savedata --- rpcs3/Emu/Cell/Modules/cellSaveData.cpp | 6 ++++++ rpcs3/Emu/Cell/Modules/cellSaveData.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellSaveData.cpp b/rpcs3/Emu/Cell/Modules/cellSaveData.cpp index 2876188126..8f85e2193a 100644 --- a/rpcs3/Emu/Cell/Modules/cellSaveData.cpp +++ b/rpcs3/Emu/Cell/Modules/cellSaveData.cpp @@ -708,6 +708,12 @@ static NEVER_INLINE s32 savedata_op(ppu_thread& ppu, u32 operation, u32 version, } file_path = fileSet->fileName.get_ptr(); + + if (type == CELL_SAVEDATA_FILETYPE_SECUREFILE) + { + cellSaveData.notice("SECUREFILE: %s -> %s", file_path, fileSet->secureFileId); + } + break; } diff --git a/rpcs3/Emu/Cell/Modules/cellSaveData.h b/rpcs3/Emu/Cell/Modules/cellSaveData.h index bed5d7fae9..557020c131 100644 --- a/rpcs3/Emu/Cell/Modules/cellSaveData.h +++ b/rpcs3/Emu/Cell/Modules/cellSaveData.h @@ -250,7 +250,7 @@ struct CellSaveDataFileSet be_t fileOperation; vm::bptr reserved; be_t fileType; - u8 secureFileId[CELL_SAVEDATA_SECUREFILEID_SIZE]; + be_t secureFileId; vm::bptr fileName; be_t fileOffset; be_t fileSize;