RPL: Remove incorrect ref count check (#1942)

This commit is contained in:
capitalistspz 2026-06-02 18:55:09 +00:00 committed by GitHub
parent a02ba9d82b
commit 591e721dc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();