From 597a9f6dd6c3a8b97547809cbd45d90261f688d6 Mon Sep 17 00:00:00 2001 From: Eladash <18193363+elad335@users.noreply.github.com> Date: Mon, 1 Apr 2024 11:21:36 +0300 Subject: [PATCH] PPU Loader: Fix unload of HLEd PRX modules --- rpcs3/Emu/Cell/PPUThread.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpcs3/Emu/Cell/PPUThread.cpp b/rpcs3/Emu/Cell/PPUThread.cpp index 694e42e9f0..a7dacbe171 100644 --- a/rpcs3/Emu/Cell/PPUThread.cpp +++ b/rpcs3/Emu/Cell/PPUThread.cpp @@ -3717,6 +3717,12 @@ extern fs::file make_file_view(fs::file&& _file, u64 offset, u64 max_size = umax extern void ppu_finalize(const ppu_module& info, bool force_mem_release) { + if (info.segs.empty()) + { + // HLEd modules + return; + } + if (!force_mem_release && info.name.empty()) { // Don't remove main module from memory