From 591e721dc07aefbb8671966480e878a215a223f3 Mon Sep 17 00:00:00 2001 From: capitalistspz Date: Tue, 2 Jun 2026 18:55:09 +0000 Subject: [PATCH] RPL: Remove incorrect ref count check (#1942) --- src/Cafe/OS/RPL/rpl.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Cafe/OS/RPL/rpl.cpp b/src/Cafe/OS/RPL/rpl.cpp index cf709a2e..523b93a5 100644 --- a/src/Cafe/OS/RPL/rpl.cpp +++ b/src/Cafe/OS/RPL/rpl.cpp @@ -2486,8 +2486,6 @@ void RPLLoader_UnloadAll() cemu_assert_debug(dependency->referenceCount >= 0); // sanity check for ref count if (!dependency->rplHLEModule) continue; - if (dependency->referenceCount <= 0) - continue; cemu_assert_debug(dependency->hleEntrypointCalled); // entrypoint should have been called dependency->rplHLEModule->rpl_entry(dependency->coreinitHandle, coreinit::RplEntryReason::Unloaded); dependency->rplHLEModule->RPLUnmapped();