mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(gameui): add Game Script table
This commit is contained in:
parent
6c5c560dc7
commit
679ed1101f
5 changed files with 1593 additions and 2 deletions
|
|
@ -30,6 +30,25 @@ void* luaM_initPool() {
|
|||
return pools;
|
||||
}
|
||||
|
||||
void luaM_freePool(void* ptr) {
|
||||
if (!ptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
MemPool** pools = reinterpret_cast<MemPool**>(ptr);
|
||||
|
||||
for (uint32_t i = 0; i < 9; ++i) {
|
||||
MemPool* pool = pools[i];
|
||||
if (pool) {
|
||||
// Is the sub_8556E0(pool) a desturctor?
|
||||
pool->~MemPool();
|
||||
SMemFree(pool, __FILE__, __LINE__, 0);
|
||||
}
|
||||
}
|
||||
|
||||
SMemFree(pools, __FILE__, __LINE__, 0);
|
||||
}
|
||||
|
||||
void* luaM_reallocPool(void* ud, void* ptr, size_t osize, size_t nsize) {
|
||||
void* result; // eax
|
||||
signed int v5; // esi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue