Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
fvb-data.h
Go to the documentation of this file.
1
#ifndef FVB_DATA_H
2
#define FVB_DATA_H
3
4
#include "
JSystem/JGadget/binary.h
"
5
#include "
JSystem/JStudio/JStudio/functionvalue.h
"
6
7
using namespace
JGadget::binary
;
8
9
namespace
JStudio
{
10
namespace
fvb {
11
namespace
data
{
12
13
extern
const
char
ga4cSignature
[4];
14
15
const
int
PARAGRAPH_DATA
= 1;
16
17
typedef
enum
TEComposite
{
18
/* 0x0 */
COMPOSITE_NONE
,
19
/* 0x1 */
COMPOSITE_RAW
,
20
/* 0x2 */
COMPOSITE_IDX
,
21
/* 0x3 */
COMPOSITE_PARAM
,
22
/* 0x4 */
COMPOSITE_ADD
,
23
/* 0x5 */
COMPOSITE_SUB
,
24
/* 0x6 */
COMPOSITE_MUL
,
25
/* 0x7 */
COMPOSITE_DIV
,
26
/* 0x8 */
COMPOSITE_ENUM_SIZE
,
27
};
28
29
typedef
const
void
* (*CompositeOperation)(
TFunctionValue_composite::TData
);
30
31
struct
TBlock
{
32
/* 0x0 */
u32
size
;
33
/* 0x4 */
u16
type
;
34
/* 0x6 */
u16
id_size
;
35
/* 0x8 */
u8
id
[0];
36
};
37
38
struct
THeader
{
39
/* 0x00 */
char
signature
[4];
40
/* 0x04 */
u16
byte_order
;
// must be 0xFEFF
41
/* 0x06 */
u16
version
;
// 0-1 = obselete, 2-7 = OK
42
/* 0x08 */
u32
_8
;
43
/* 0x0C */
u32
block_number
;
44
/* 0x10 */
u8
content
[0];
45
};
46
// Parses a THeader
47
class
TParse_THeader
:
public
TParseData_aligned
<4> {
48
public
:
49
TParse_THeader
(
const
void
*
p
) :
TParseData_aligned
<4>(
p
) {}
50
51
const
THeader
*
get
()
const
{
return
(
THeader
*)
getRaw
(); }
52
const
void
*
getContent
()
const
{
return
((
THeader
*)
getRaw
())->content; }
53
const
char
*
get_signature
()
const
{
return
get
()->
signature
; }
54
u16
get_byteOrder
()
const
{
return
get
()->
byte_order
; }
55
u16
get_version
()
const
{
return
get
()->
version
; }
56
u32
get_blockNumber
()
const
{
return
get
()->
block_number
; }
57
};
58
59
}
// namespace data
60
}
// namespace fvb
61
}
// namespace JStudio
62
63
#endif
/* FVB_DATA_H */
binary.h
JStudio::fvb::data::TParse_THeader
Definition
fvb-data.h:47
JStudio::fvb::data::TParse_THeader::get_byteOrder
u16 get_byteOrder() const
Definition
fvb-data.h:54
JStudio::fvb::data::TParse_THeader::get_signature
const char * get_signature() const
Definition
fvb-data.h:53
JStudio::fvb::data::TParse_THeader::TParse_THeader
TParse_THeader(const void *p)
Definition
fvb-data.h:49
JStudio::fvb::data::TParse_THeader::get
const THeader * get() const
Definition
fvb-data.h:51
JStudio::fvb::data::TParse_THeader::get_blockNumber
u32 get_blockNumber() const
Definition
fvb-data.h:56
JStudio::fvb::data::TParse_THeader::getContent
const void * getContent() const
Definition
fvb-data.h:52
JStudio::fvb::data::TParse_THeader::get_version
u16 get_version() const
Definition
fvb-data.h:55
data
static u16 data[4]
Definition
d_vibration.cpp:114
p
p
Definition
e_acos.c:98
functionvalue.h
JGadget::binary
Definition
binary.h:7
JStudio::fvb::data::ga4cSignature
const char ga4cSignature[4]
Definition
fvb-data.cpp:3
JStudio::fvb::data::PARAGRAPH_DATA
const int PARAGRAPH_DATA
Definition
fvb-data.h:15
JStudio::fvb::data::TEComposite
TEComposite
Definition
fvb-data.h:17
JStudio::fvb::data::COMPOSITE_RAW
@ COMPOSITE_RAW
Definition
fvb-data.h:19
JStudio::fvb::data::COMPOSITE_SUB
@ COMPOSITE_SUB
Definition
fvb-data.h:23
JStudio::fvb::data::COMPOSITE_MUL
@ COMPOSITE_MUL
Definition
fvb-data.h:24
JStudio::fvb::data::COMPOSITE_IDX
@ COMPOSITE_IDX
Definition
fvb-data.h:20
JStudio::fvb::data::COMPOSITE_NONE
@ COMPOSITE_NONE
Definition
fvb-data.h:18
JStudio::fvb::data::COMPOSITE_ENUM_SIZE
@ COMPOSITE_ENUM_SIZE
Definition
fvb-data.h:26
JStudio::fvb::data::COMPOSITE_PARAM
@ COMPOSITE_PARAM
Definition
fvb-data.h:21
JStudio::fvb::data::COMPOSITE_ADD
@ COMPOSITE_ADD
Definition
fvb-data.h:22
JStudio::fvb::data::COMPOSITE_DIV
@ COMPOSITE_DIV
Definition
fvb-data.h:25
JStudio
Definition
functionvalue.cpp:318
JGadget::binary::TParseData_aligned
Definition
binary.h:30
JGadget::binary::TParseData::getRaw
const void * getRaw() const
Definition
binary.h:23
JStudio::TFunctionValue_composite::TData
Definition
functionvalue.h:174
JStudio::fvb::data::TBlock
Definition
fvb-data.h:31
JStudio::fvb::data::TBlock::size
u32 size
Definition
fvb-data.h:32
JStudio::fvb::data::TBlock::type
u16 type
Definition
fvb-data.h:33
JStudio::fvb::data::TBlock::id_size
u16 id_size
Definition
fvb-data.h:34
JStudio::fvb::data::THeader
Definition
fvb-data.h:38
JStudio::fvb::data::THeader::byte_order
u16 byte_order
Definition
fvb-data.h:40
JStudio::fvb::data::THeader::content
u8 content[0]
Definition
fvb-data.h:44
JStudio::fvb::data::THeader::_8
u32 _8
Definition
fvb-data.h:42
JStudio::fvb::data::THeader::block_number
u32 block_number
Definition
fvb-data.h:43
JStudio::fvb::data::THeader::signature
char signature[4]
Definition
fvb-data.h:39
JStudio::fvb::data::THeader::version
u16 version
Definition
fvb-data.h:41
u32
unsigned long u32
Definition
types.h:10
u16
unsigned short u16
Definition
types.h:9
u8
unsigned char u8
Definition
types.h:8
include
JSystem
JStudio
JStudio
fvb-data.h
Generated by
1.9.8