From 37ba19776ad10ca5f9e13459c21ab3b222939309 Mon Sep 17 00:00:00 2001 From: Eladash Date: Sun, 10 Sep 2023 17:39:55 +0300 Subject: [PATCH] PPU LLVM: Fixup pdone count --- rpcs3/Emu/Cell/PPUThread.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/PPUThread.cpp b/rpcs3/Emu/Cell/PPUThread.cpp index 5b1ef9f0e3..9cf6049b9b 100644 --- a/rpcs3/Emu/Cell/PPUThread.cpp +++ b/rpcs3/Emu/Cell/PPUThread.cpp @@ -4569,7 +4569,7 @@ bool ppu_initialize(const ppu_module& info, bool check_only, u64 file_size) fmt::append(obj_name, "v6-kusa-%s-%s-%s.obj", fmt::base57(output, 16), fmt::base57(settings), jit_compiler::cpu(g_cfg.core.llvm_cpu)); } - if (Emu.IsStopped()) + if (cpu ? cpu->state.all_of(cpu_flag::exit) : Emu.IsStopped()) { break; } @@ -4588,7 +4588,9 @@ bool ppu_initialize(const ppu_module& info, bool check_only, u64 file_size) { ppu_log.success("LLVM: Module exists: %s", obj_name); - total_compile++; + // Done already, revert total amount increase + // Avoid incrementing "pdone" instead because it creates false appreciation for both the progress dialog and the user + total_compile--; } continue;