From e74cceb3f4e8f5eee0e0d9e90212f79de65f3af5 Mon Sep 17 00:00:00 2001 From: Elad Ashkenazi <18193363+elad335@users.noreply.github.com> Date: Fri, 3 May 2024 22:27:33 +0300 Subject: [PATCH] Add logging of exported SPRX functions on dummy load --- rpcs3/Emu/Cell/PPUModule.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/PPUModule.cpp b/rpcs3/Emu/Cell/PPUModule.cpp index e7a442efc5..52bac4586d 100644 --- a/rpcs3/Emu/Cell/PPUModule.cpp +++ b/rpcs3/Emu/Cell/PPUModule.cpp @@ -735,7 +735,9 @@ static auto ppu_load_exports(const ppu_module& _module, ppu_linkage_info* link, continue; } - if (for_observing_callbacks) + const bool is_dummy_load = Emu.IsReady() && g_fxo->get().segs.empty() && !Emu.DeserialManager(); + + if (!is_dummy_load && for_observing_callbacks) { continue; } @@ -759,7 +761,7 @@ static auto ppu_load_exports(const ppu_module& _module, ppu_linkage_info* link, ppu_loader.error("Unexpected num_tlsvar (%u)!", lib.num_tlsvar); } - const bool should_load = ppu_register_library_lock(module_name, true); + const bool should_load = is_dummy_load || ppu_register_library_lock(module_name, true); if (loaded_flags) {