mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-08 20:10:39 +01:00
coreinit: Fill out MEMUnitHeap structure.
This commit is contained in:
parent
0a34d5b7a2
commit
4a595fba93
@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <wut.h>
|
#include <wut.h>
|
||||||
|
#include "memheap.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \defgroup coreinit_unitheap Unit Heap
|
* \defgroup coreinit_unitheap Unit Heap
|
||||||
@ -12,11 +13,25 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct MEMUnitHeap MEMUnitHeap;
|
typedef struct MEMUnitHeap MEMUnitHeap;
|
||||||
|
typedef struct MEMUnitHeapFreeBlock MEMUnitHeapFreeBlock;
|
||||||
|
|
||||||
|
struct MEMUnitHeapFreeBlock
|
||||||
|
{
|
||||||
|
MEMUnitHeapFreeBlock *next;
|
||||||
|
};
|
||||||
|
CHECK_OFFSET(MEMUnitHeapFreeBlock, 0x00, next);
|
||||||
|
CHECK_SIZE(MEMUnitHeapFreeBlock, 0x04);
|
||||||
|
|
||||||
struct MEMUnitHeap
|
struct MEMUnitHeap
|
||||||
{
|
{
|
||||||
|
MEMHeapHeader header;
|
||||||
|
MEMUnitHeapFreeBlock *freeBlocks;
|
||||||
|
uint32_t blockSize;
|
||||||
};
|
};
|
||||||
UNKNOWN_SIZE(MEMUnitHeap);
|
CHECK_OFFSET(MEMUnitHeap, 0x00, header);
|
||||||
|
CHECK_OFFSET(MEMUnitHeap, 0x40, freeBlocks);
|
||||||
|
CHECK_OFFSET(MEMUnitHeap, 0x44, blockSize);
|
||||||
|
CHECK_SIZE(MEMUnitHeap, 0x48);
|
||||||
|
|
||||||
MEMUnitHeap *
|
MEMUnitHeap *
|
||||||
MEMCreateUnitHeapEx(MEMUnitHeap *heap,
|
MEMCreateUnitHeapEx(MEMUnitHeap *heap,
|
||||||
|
Loading…
Reference in New Issue
Block a user