diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index 66e7b2a7d9..6b534c75c2 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -1823,33 +1823,8 @@ game_boot_result Emulator::Load(const std::string& title_id, bool is_disc_patch, // Check SELF header if (elf_file.size() >= 4 && elf_file.read() == "SCE\0"_u32) { - const std::string decrypted_path = "boot.elf"; - - fs::stat_t encrypted_stat = elf_file.stat(); - fs::stat_t decrypted_stat; - - // Check modification time and try to load decrypted ELF - if (false && fs::stat(decrypted_path, decrypted_stat) && decrypted_stat.mtime == encrypted_stat.mtime) - { - elf_file.open(decrypted_path); - } // Decrypt SELF - else if ((elf_file = decrypt_self(std::move(elf_file), klic.empty() ? nullptr : reinterpret_cast(&klic[0]), &g_ps3_process_info.self_info))) - { - if (true) - { - } - else if (fs::file elf_out{decrypted_path, fs::rewrite}) - { - elf_out.write(elf_file.to_vector()); - elf_out.close(); - fs::utime(decrypted_path, encrypted_stat.atime, encrypted_stat.mtime); - } - else - { - sys_log.error("Failed to create boot.elf"); - } - } + elf_file = decrypt_self(std::move(elf_file), klic.empty() ? nullptr : reinterpret_cast(&klic[0]), &g_ps3_process_info.self_info); } else {