From 983bfa208805fc6c8f4213e7bc482b765c065af3 Mon Sep 17 00:00:00 2001 From: Eladash Date: Thu, 7 Jul 2022 22:08:39 +0300 Subject: [PATCH] Savestates: Decryption of executable fix --- rpcs3/Emu/Cell/PPUModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/PPUModule.cpp b/rpcs3/Emu/Cell/PPUModule.cpp index fea3f8b20c..629bb7419d 100644 --- a/rpcs3/Emu/Cell/PPUModule.cpp +++ b/rpcs3/Emu/Cell/PPUModule.cpp @@ -895,7 +895,7 @@ extern bool is_memory_compatible_for_copy_from_executable_optimization(u32 addr, return false; } - s_ppu_exec.open(decrypt_self(fs::file(Emu.GetBoot()))); + s_ppu_exec.open(decrypt_self(fs::file(Emu.GetBoot()), Emu.klic.empty() ? nullptr : reinterpret_cast(&Emu.klic[0]))); if (s_ppu_exec != elf_error::ok) {