summaryrefslogtreecommitdiff
path: root/include/pso
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-02-07 17:10:15 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-02-07 17:16:28 -0400
commit869b2933fa3f62ff4eb075772a246ee54b881fe1 (patch)
treeacb353146c776ee294775539a4a6ddf10d85e89f /include/pso
parent149211e2a7e8044fbf4d3e1e2cec867ea30aacaa (diff)
THeap: Add, and make use of `heap_node` struct
Diffstat (limited to 'include/pso')
-rw-r--r--include/pso/THeap.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/include/pso/THeap.h b/include/pso/THeap.h
index 60932d5..6a94dee 100644
--- a/include/pso/THeap.h
+++ b/include/pso/THeap.h
@@ -14,11 +14,15 @@ extern THeap *alt_heap;
class THeap {
public:
- u8 *heap;
- size_t alloc_size;
- s32 align;
- size_t heap_size;
- s32 mbr_0x10;
+ struct heap_node {
+ heap_node *next;
+ size_t remaining_size;
+ };
+ heap_node *heap_nodes;
+ size_t mbr_0x04;
+ size_t align;
+ size_t mbr_0x0C;
+ size_t mbr_0x10;
public:
THeap(size_t size, int align);
~THeap();