mirror of
https://github.com/zeldaret/ss
synced 2026-07-08 13:56:15 -04:00
use bools
This commit is contained in:
@@ -24,7 +24,7 @@ public:
|
||||
void destroyHeap();
|
||||
s32 adjustFrmHeap();
|
||||
s32 adjustExpHeap();
|
||||
s32 createNewTempFrmHeap(s32 size, EGG::Heap *newHeap, char *heapName, s32 align, u32 unk);
|
||||
bool createNewTempFrmHeap(s32 size, EGG::Heap *newHeap, char *heapName, s32 align, u32 unk);
|
||||
void adjustFrmHeapRestoreCurrent();
|
||||
static void *allocOnHeap(u32 size, mHeapAllocator_c *allocator);
|
||||
};
|
||||
|
||||
@@ -84,7 +84,7 @@ s32 mHeapAllocator_c::adjustExpHeap() {
|
||||
return mHeap::adjustExpHeap(static_cast<EGG::ExpHeap *>(getHeapOfKind(heap, EGG::Heap::HEAP_KIND_EXPANDED)));
|
||||
}
|
||||
|
||||
s32 mHeapAllocator_c::createNewTempFrmHeap(s32 size, EGG::Heap *newHeap, char *heapName, s32 align, u32 attrs) {
|
||||
bool mHeapAllocator_c::createNewTempFrmHeap(s32 size, EGG::Heap *newHeap, char *heapName, s32 align, u32 attrs) {
|
||||
if (!replaceWithNewFrmHeap(size, newHeap, heapName, align, attrs)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user