Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
stb-data.h
Go to the documentation of this file.
1#ifndef STB_DATA_H
2#define STB_DATA_H
3
4#include "dolphin/types.h"
5
6namespace JStudio {
7namespace stb {
8namespace data {
9
10const int guBit_TSequence_type = 24;
11
12const int BLOCK_SOUND = 'JSND';
13const int BLOCK_ACTOR = 'JACT';
14const int BLOCK_AMBIENTLIGHT = 'JABL';
15const int BLOCK_CAMERA = 'JCMR';
16const int BLOCK_FOG = 'JFOG';
17const int BLOCK_LIGHT = 'JLIT';
18const int BLOCK_MESSAGE = 'JMSG';
19const int BLOCK_PARTICLE = 'JPTC';
20const int BLOCK_NONE = -1;
21
22// Used to expand a signed 24 int to a signed 32 int
24extern u32 ga4cSignature; // 'STB/0'
25extern const s32 gauDataSize_TEParagraph_data[8];
26
27inline void toString_block(char* a5c, u32 arg1) {
28 // from debug, todo
29}
30
31struct THeader {
32 struct Target {
33 /* 0x00 */ char name[8]; // "jstudio"
34 /* 0x08 */ u16 _8[3];
35 /* 0x0E */ u16 target_version;
36 };
37
38 /* 0x00 */ char signature[4];
39 /* 0x04 */ u16 byte_order; // must be 0xFEFF
40 /* 0x06 */ u16 version; // 0-1 = obselete, 2-7 = OK
41 /* 0x08 */ u32 _8;
42 /* 0x0C */ u32 block_number;
43 /* 0x10 */ Target target;
44 /* 0x20 */ u8 content[0];
45};
46
47struct TBlock {
48 /* 0x0 */ u32 size;
49 /* 0x4 */ u32 type; // char[4] JMSG, JSND, JACT, ...
50};
51
53 /* 0x8 */ u16 flag;
54 /* 0xA */ u16 id_size;
55 /* 0xC */ u8 id[0]; // unique identifier
57};
58
59struct TParagraph {
60 /* 0x0 */ u16 _0;
61 /* 0x2 */ u16 id_size;
62 /* 0x4 */ u8 id[0]; // unique identifier
63};
64
65} // namespace data
66} // namespace stb
67} // namespace JStudio
68
69#endif /* STB_DATA_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
static u16 data[4]
Definition d_vibration.cpp:114
void toString_block(char *a5c, u32 arg1)
Definition stb-data.h:27
const int BLOCK_PARTICLE
Definition stb-data.h:19
const int BLOCK_NONE
Definition stb-data.h:20
const int BLOCK_CAMERA
Definition stb-data.h:15
const int BLOCK_FOG
Definition stb-data.h:16
const u32 gu32Mask_TSequence_value_signExpansion
Definition stb-data.h:23
const int BLOCK_SOUND
Definition stb-data.h:12
u32 ga4cSignature
Definition stb-data.cpp:5
const int guBit_TSequence_type
Definition stb-data.h:10
const s32 gauDataSize_TEParagraph_data[8]
Definition stb-data.cpp:4
const int BLOCK_LIGHT
Definition stb-data.h:17
const int BLOCK_ACTOR
Definition stb-data.h:13
const int BLOCK_AMBIENTLIGHT
Definition stb-data.h:14
const int BLOCK_MESSAGE
Definition stb-data.h:18
Definition functionvalue.cpp:318
Definition stb-data.h:52
u16 id_size
Definition stb-data.h:54
u16 flag
Definition stb-data.h:53
Definition stb-data.h:47
u32 type
Definition stb-data.h:49
u32 size
Definition stb-data.h:48
Definition stb-data.h:32
u16 target_version
Definition stb-data.h:35
u16 _8[3]
Definition stb-data.h:34
char name[8]
Definition stb-data.h:33
Definition stb-data.h:31
u32 block_number
Definition stb-data.h:42
u32 _8
Definition stb-data.h:41
u16 byte_order
Definition stb-data.h:39
u16 version
Definition stb-data.h:40
char signature[4]
Definition stb-data.h:38
Target target
Definition stb-data.h:43
u8 content[0]
Definition stb-data.h:44
Definition stb-data.h:59
u16 id_size
Definition stb-data.h:61
u16 _0
Definition stb-data.h:60
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8