mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-09-03 00:53:49 -04:00
Implement JSystem/JKernel/JKRDisposer.cpp
This commit is contained in:
@@ -11,6 +11,8 @@ JSystem/JKernel/JKRHeap.cpp:
|
|||||||
.data: [0x800ddf20, 0x800ddf98]
|
.data: [0x800ddf20, 0x800ddf98]
|
||||||
.sdata: [0x80217e58, 0x80217e80]
|
.sdata: [0x80217e58, 0x80217e80]
|
||||||
.sbss: [0x802186d8, 0x80218700]
|
.sbss: [0x802186d8, 0x80218700]
|
||||||
|
JSystem/JKernel/JKRDisposer.cpp:
|
||||||
|
.text: [0x80065aa0, 0x80065b8c]
|
||||||
dolphin/BASE/ppcarch.c:
|
dolphin/BASE/ppcarch.c:
|
||||||
.text: [0x8007867c, 0x80078718]
|
.text: [0x8007867c, 0x80078718]
|
||||||
dolphin/os/OSArena.c:
|
dolphin/os/OSArena.c:
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
#include "JSystem/JKernel/JKRDisposer.h"
|
||||||
|
#include "JSystem/JKernel/JKRHeap.h"
|
||||||
|
|
||||||
|
JKRDisposer::JKRDisposer() : mPointerLinks(this) {
|
||||||
|
this->mRootHeap = JKRHeap::findFromRoot(this);
|
||||||
|
if (this->mRootHeap != nullptr) {
|
||||||
|
this->mRootHeap->appendDisposer(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
JKRDisposer::~JKRDisposer() {
|
||||||
|
if (this->mRootHeap != nullptr) {
|
||||||
|
this->mRootHeap->removeDisposer(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user