mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-30 15:43:19 -04:00
Revert "Isolate JKRHeap operator overloads" (#39)
This commit is contained in:
@@ -54,7 +54,7 @@ JKRCompArchive::~JKRCompArchive() {
|
||||
}
|
||||
|
||||
if (mDvdFile != NULL) {
|
||||
JKR_DELETE(mDvdFile);
|
||||
delete mDvdFile;
|
||||
}
|
||||
|
||||
sVolumeList.remove(&mFileLoaderLink);
|
||||
@@ -73,7 +73,7 @@ bool JKRCompArchive::open(s32 entryNum) {
|
||||
mFiles = NULL;
|
||||
mStringTable = NULL;
|
||||
|
||||
mDvdFile = JKR_NEW_ARGS (JKRGetSystemHeap(), 0) JKRDvdFile(entryNum);
|
||||
mDvdFile = new (JKRGetSystemHeap(), 0) JKRDvdFile(entryNum);
|
||||
if(mDvdFile == NULL) {
|
||||
mMountMode = 0;
|
||||
return 0;
|
||||
@@ -216,7 +216,7 @@ bool JKRCompArchive::open(s32 entryNum) {
|
||||
if (mMountMode == 0) {
|
||||
OS_REPORT(":::[%s: %d] Cannot alloc memory in mounting CompArchive\n", __FILE__, 567);
|
||||
if(mDvdFile != NULL) {
|
||||
JKR_DELETE(mDvdFile);
|
||||
delete mDvdFile;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user