Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_bg_plc.h
Go to the documentation of this file.
1#ifndef D_BG_D_BG_PLC_H
2#define D_BG_D_BG_PLC_H
3
4#include "d/d_bg_pc.h"
5
6struct sBgPlc {
7 /* 0x0 */ u32 magic; // "SPLC"
8 /* 0x4 */ u16 m_code_size; // Should normally always be 0x14
9 /* 0x6 */ u16 m_num; // Number of sBgPc entries to follow
10 /* 0x8 */ sBgPc m_code[0]; // m_num size array
11};
12
13class dBgPlc {
14public:
15 /* 80074074 */ dBgPlc();
16 /* 80074080 */ ~dBgPlc();
17 /* 800740BC */ void setBase(void*);
18 /* 800740C4 */ sBgPc* getCode(int, sBgPc**) const;
19 /* 800740DC */ u32 getGrpCode(int) const;
20
21 static const int ZELDA_CODE_SIZE = sizeof(sBgPc);
22
23private:
24 /* 0x00 */ sBgPlc* m_base;
25};
26
27#endif /* D_BG_D_BG_PLC_H */
Definition d_bg_plc.h:13
static const int ZELDA_CODE_SIZE
Definition d_bg_plc.h:21
~dBgPlc()
Definition d_bg_plc.cpp:10
void setBase(void *)
Definition d_bg_plc.cpp:13
sBgPc * getCode(int, sBgPc **) const
Definition d_bg_plc.cpp:18
sBgPlc * m_base
Definition d_bg_plc.h:24
dBgPlc()
Definition d_bg_plc.cpp:5
u32 getGrpCode(int) const
Definition d_bg_plc.cpp:30
Definition d_bg_pc.h:6
Definition d_bg_plc.h:6
u16 m_code_size
Definition d_bg_plc.h:8
sBgPc m_code[0]
Definition d_bg_plc.h:10
u16 m_num
Definition d_bg_plc.h:9
u32 magic
Definition d_bg_plc.h:7
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9