From 8830f8817f7f9eb7d77c28b8abada6202f5181d6 Mon Sep 17 00:00:00 2001 From: trigger Date: Fri, 28 Feb 2025 23:09:27 -0800 Subject: [PATCH] disable runtime precomp. debug log --- rpcs3/Emu/Cell/PPUThread.cpp | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/rpcs3/Emu/Cell/PPUThread.cpp b/rpcs3/Emu/Cell/PPUThread.cpp index a86eb6670b..630b8fcdab 100644 --- a/rpcs3/Emu/Cell/PPUThread.cpp +++ b/rpcs3/Emu/Cell/PPUThread.cpp @@ -4275,9 +4275,14 @@ extern void ppu_precompile(std::vector& dir_queue, std::vector 0 && src.open(path)) + if (!src && !Emu.klic.empty() && src.open(path)) { - src = decrypt_self(std::move(src), reinterpret_cast(&Emu.klic[0]), nullptr, true); + src = decrypt_self(src, reinterpret_cast(&Emu.klic[0])); + + if (src) + { + ppu_log.error("Possible missed KLIC for precompilation of '%s', please report to developers.", path); + } } if (!src) @@ -4467,9 +4472,14 @@ extern void ppu_precompile(std::vector& dir_queue, std::vector 0 && src.open(path)) + if (!src && !Emu.klic.empty() && src.open(path)) { - src = decrypt_self(std::move(src), reinterpret_cast(&Emu.klic[0]), nullptr, true); + src = decrypt_self(src, reinterpret_cast(&Emu.klic[0])); + + if (src) + { + ppu_log.error("Possible missed KLIC for precompilation of '%s', please report to developers.", path); + } } if (!src) @@ -4647,7 +4657,7 @@ extern void ppu_initialize() } // Avoid compilation if main's cache exists or it is a standalone SELF with no PARAM.SFO - if (compile_main && g_cfg.core.llvm_precompilation && !Emu.GetTitleID().empty()) + if (compile_main && g_cfg.core.llvm_precompilation && !Emu.GetTitleID().empty() && !Emu.IsChildProcess()) { // Try to add all related directories const std::set dirs = Emu.GetGameDirs();