mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-06-08 19:49:34 -04:00
80ef14e480
* match and link JKRAram.cpp * match and link JKRExpHeap * match and link JKRAramStream.cpp * match and link JKRFileLoader.cpp * match and link JKRFileFinder.cpp * JKernel Dump * match and link JKRAramArchive.cpp * match and link JKRDvdArchive.cpp * match and link JKRCompArchive.cpp * match but not link JKRDvdAramRipper * small refactors * match and link JKRThread.cpp * fix and link JKRDvdAramStream.cpp * Formatting fixes --------- Co-authored-by: SwareJonge <olaf23okken@gmail.com>
17 lines
381 B
C++
17 lines
381 B
C++
#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);
|
|
}
|
|
}
|