summaryrefslogtreecommitdiff
path: root/include/System/SysNew.hpp
blob: 184c27fb0fdadbdacb11c826d2734fbf3d015e9e (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
#pragma once

#include "global.h"
#include "types.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(unsigned long length, u32 *id, u32 idLength);
    static void *operator new[](unsigned long length, u32 *id, u32 idLength);
    static void operator delete(void *ptr);
    static void operator delete[](void *ptr);
};

extern UnkStruct_0202e894 *data_027e0ce4;