mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 13:25:45 +00:00
core: hle: kernel: object: Implement Finalize() virtual method.
This commit is contained in:
parent
3cefddbb47
commit
eb3a02a3fd
15 changed files with 29 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue