summaryrefslogtreecommitdiff
path: root/include/JSystem/JUtility/JUTResource.h
blob: f5181cbffcf4a2ec3489d49ebfd620a1c331adbe (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
30
31
32
33
34
#ifndef JUTRESOURCE_H
#define JUTRESOURCE_H

#include "dolphin/types.h"

class JKRArchive;
class JSUInputStream;

/**
* @ingroup jsystem-jutility
* 
*/
class JUTResReference {
private:
    /* 0x001 */ u8 mType;
    /* 0x002 */ u8 mNameLength;
    /* 0x003 */ char mName[0x100];

public:
    enum ResType {
        RESTYPE_Null = 0,
        RESTYPE_Unk1 = 1,
        RESTYPE_Unk2 = 2,
        RESTYPE_Unk3 = 3,
        RESTYPE_Unk4 = 4,
    };
    JUTResReference() { mType = 0; }
    /* 802DE078 */ void* getResource(JSUInputStream*, u32, JKRArchive*);
    /* 802DE120 */ void* getResource(void const*, u32, JKRArchive*);
    /* 802DE1BC */ void* getResource(u32, JKRArchive*);
};
// only rough size known due to getPointer__7J2DPaneFP20JSURandomInputStreamUlP10JKRArchive

#endif /* JUTRESOURCE_H */