Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JUTNameTab.h
Go to the documentation of this file.
1#ifndef JUTNAMETAB_H
2#define JUTNAMETAB_H
3
4#include "dolphin/types.h"
5
10struct ResNTAB {
17
18 inline const char* getName(u32 index) const {
19 return ((const char*)mEntries) + mEntries[index].mOffs - 4;
20 }
21};
22
28public:
29 JUTNameTab();
31 virtual ~JUTNameTab() {};
32
33 void setResource(const ResNTAB* pNameTable);
34 s32 getIndex(char const*) const;
35 const char* getName(u16 index) const;
36 u16 calcKeyCode(char const* pName) const;
37 const ResNTAB* getResNameTable() const { return mNameTable; }
38
39private:
40 /* 0x4 */ const ResNTAB* mNameTable;
41 /* 0x8 */ const char* mpStrData;
42 /* 0xC */ u16 mNameNum;
43};
44
45#endif /* JUTNAMETAB_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JUTNameTab.h:27
const ResNTAB * getResNameTable() const
Definition JUTNameTab.h:37
u16 mNameNum
Definition JUTNameTab.h:42
u16 calcKeyCode(char const *pName) const
Definition JUTNameTab.cpp:47
s32 getIndex(char const *) const
Definition JUTNameTab.cpp:29
void setResource(const ResNTAB *pNameTable)
Definition JUTNameTab.cpp:17
JUTNameTab()
Definition JUTNameTab.cpp:9
const char * mpStrData
Definition JUTNameTab.h:41
const ResNTAB * mNameTable
Definition JUTNameTab.h:40
const char * getName(u16 index) const
Definition JUTNameTab.cpp:41
virtual ~JUTNameTab()
Definition JUTNameTab.h:31
Definition JUTNameTab.h:13
u16 mOffs
Definition JUTNameTab.h:15
u16 mKeyCode
Definition JUTNameTab.h:14
Definition JUTNameTab.h:10
const char * getName(u32 index) const
Definition JUTNameTab.h:18
struct ResNTAB::Entry mEntries[1]
u16 mPad0
Definition JUTNameTab.h:12
u16 mEntryNum
Definition JUTNameTab.h:11
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6