Centralize location of memory pools

This commit centralizes the location of memory pools and adds an
associated script (scripts/get_memory_map.sh) to read the memory map.
This commit is contained in:
Rickey Fehr
2025-10-17 16:55:09 -07:00
parent 72c0a6c4a9
commit 06cd13a17f
9 changed files with 70 additions and 36 deletions
-7
View File
@@ -9,19 +9,12 @@
#include <stdlib.h>
#include <maxmod.h>
#define MAX_SPRITES 128
#define MAX_AFFINES 32
#define SPRITE_FOCUS_RAISE_PX 10
OBJ_ATTR obj_buffer[MAX_SPRITES];
OBJ_AFFINE *obj_aff_buffer = (OBJ_AFFINE*)obj_buffer;
POOL_DECLARE_TYPE(SpriteObject)
POOL_DEFINE_TYPE(SpriteObject, MAX_SPRITES)
POOL_DECLARE_TYPE(Sprite)
POOL_DEFINE_TYPE(Sprite, MAX_SPRITES)
static bool free_affines[MAX_AFFINES] = {false};
// Sprite methods