summaryrefslogtreecommitdiff
path: root/include/System/SysNew.hpp
blob: f1696089a708212bb62f042562cec2e463ebfd4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once

#include "global.h"
#include "types.h"

#include <stddef.h>

struct UnkStruct_0202e894 {
    /* 00 */ u32 mId;
    /* 04 */ u32 *mUnk_04;
    /* 08 */ unk8 mUnk_08[0x24];
    /* 2c */
};

void *SysNew(UnkStruct_0202e894 *param1, s32 length, s32 param3);
void SysDelete(void *ptr);
void *func_0202e99c(s32 length);
void *func_0202e9bc(s32 length);

class SysObject {
public:
    static void *operator new(size_t length, u32 *id, u32 idLength);
    static void *operator new[](size_t length, u32 *id, u32 idLength);
    static void operator delete(void *ptr);
    static void operator delete[](void *ptr);
};

extern u32 *data_027e0ce0[];
extern UnkStruct_0202e894 *data_027e0ce4;