Actor cleanup (#32)

* Actor cleanup

---------

Co-authored-by: elijah-thomas774 <elijahthomas774@gmail.com>
This commit is contained in:
robojumper
2024-09-15 21:40:03 +02:00
committed by GitHub
parent 732a119127
commit 508d5b9e72
26 changed files with 80 additions and 93 deletions
+3 -1
View File
@@ -128,6 +128,8 @@ protected:
};
// Actors' createHeap functions often have patterns that can be matched with this macro
#define TRY_CREATE(thing) do { bool result = (thing); if (!result) return result; } while (0);
#define TRY_CREATE(thing) do { bool result = (thing); if (!result) return result; } while (0)
#define CREATE_ALLOCATOR(className) do { if (!initAllocatorWork1Heap(-1, #className "::m_allocator", 0x20)) { return FAILED; } } while (0)
#endif
+1 -1
View File
@@ -127,7 +127,7 @@ public:
void draw(const mMtx_c &, u32);
void afterDraw();
EGG::FrmHeap *changeHeap(int index) {
void changeHeap(int index) {
mCurrentHeapIdx = index % 2;
mpCurrentHeap = mpFrmHeaps[mCurrentHeapIdx];
}