mirror of
https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
synced 2025-12-14 00:32:40 +00:00
core: hle: kernel: object: Implement Finalize() virtual method.
This commit is contained in:
@@ -89,6 +89,10 @@ ResultCode HandleTable::Close(Handle handle) {
|
||||
|
||||
const u16 slot = GetSlot(handle);
|
||||
|
||||
if (objects[slot].use_count() == 1) {
|
||||
objects[slot]->Finalize();
|
||||
}
|
||||
|
||||
objects[slot] = nullptr;
|
||||
|
||||
generations[slot] = next_free_slot;
|
||||
|
||||
Reference in New Issue
Block a user