diff --git a/include/m/m_allocator.h b/include/m/m_allocator.h index 1930e9ca..e4f2a175 100644 --- a/include/m/m_allocator.h +++ b/include/m/m_allocator.h @@ -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); }; diff --git a/src/m/m_allocator.cpp b/src/m/m_allocator.cpp index a4f2c05b..e03651df 100644 --- a/src/m/m_allocator.cpp +++ b/src/m/m_allocator.cpp @@ -84,7 +84,7 @@ s32 mHeapAllocator_c::adjustExpHeap() { return mHeap::adjustExpHeap(static_cast(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; }