PPU Loader: Fix unload of HLEd PRX modules

This commit is contained in:
Eladash 2024-04-01 11:21:36 +03:00 committed by Elad Ashkenazi
parent e90b399329
commit 597a9f6dd6
1 changed files with 6 additions and 0 deletions

View File

@ -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