mirror of
https://github.com/zeldaret/tp
synced 2026-05-24 07:11:06 -04:00
5217a4189e
* JKRDecomp OK * JKRFile and JKRDvdFile cleanup * more DVD stuff and cleanup JKRDvdFile more * formatting * JKRHeap cleanup * formatting * JKRDisposer cleanup * JKRAramBlock and JKRAramHeap cleanup * fix merge error * fixed comments * forgot to save file... * fix DVDCBcallback Co-authored-by: Julgodis <>
18 lines
383 B
C++
18 lines
383 B
C++
#include "JSystem/JKernel/JKRDisposer/JKRDisposer.h"
|
|
#include "JSystem/JKernel/JKRHeap/JKRHeap.h"
|
|
#include "global.h"
|
|
|
|
JKRDisposer::JKRDisposer() : mLink(this) {
|
|
mHeap = JKRHeap::findFromRoot(this);
|
|
if (mHeap) {
|
|
mHeap->appendDisposer(this);
|
|
}
|
|
}
|
|
|
|
JKRDisposer::~JKRDisposer() {
|
|
JKRHeap* heap = mHeap;
|
|
if (heap) {
|
|
heap->removeDisposer(this);
|
|
}
|
|
}
|