mirror of
https://github.com/zeldaret/ss
synced 2026-06-06 19:41:44 -04:00
Actor cleanup (#32)
* Actor cleanup --------- Co-authored-by: elijah-thomas774 <elijahthomas774@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user