fix(whoa): update thunderbrew to use the refactored squall error/validation and bc allocation macros

This commit is contained in:
phaneron 2025-03-31 23:52:37 -04:00
parent 1aeacd0d2e
commit 46843880ef
66 changed files with 459 additions and 457 deletions

View file

@ -23,6 +23,7 @@ target_link_libraries(ui
net
util
PUBLIC
bc
common
storm
tempest

View file

@ -2,15 +2,14 @@
#include "gx/Draw.hpp"
#include "ui/CRenderBatch.hpp"
#include "ui/CSimpleModelFFXScript.hpp"
#include <storm/Memory.hpp>
#include <bc/Memory.hpp>
int32_t CSimpleModelFFX::s_metatable;
CSimpleFrame* CSimpleModelFFX::Create(CSimpleFrame* parent) {
// TODO
// auto m = CDataAllocator::GetData(CSimpleModelFFX::s_simpleModelFFXHeap, 0, __FILE__, __LINE__);
auto m = SMemAlloc(sizeof(CSimpleModelFFX), __FILE__, __LINE__, 0x0);
return new (m) CSimpleModelFFX(parent);
return NEW(CSimpleModelFFX, parent);
}
void CSimpleModelFFX::Render(void* arg) {

View file

@ -1,9 +1,8 @@
#include "ui/LuaMemory.hpp"
#include "ui/FrameScript.hpp"
#include <cstring>
#include <new>
#include <common/MemPool.hpp>
#include <storm/Memory.hpp>
#include <bc/Memory.hpp>
void* luaM_initPool() {
void* m = SMemAlloc(sizeof(MemPool*) * 9, __FILE__, __LINE__, 0x0);