-
Notifications
You must be signed in to change notification settings - Fork 2
/
continuegame.h
111 lines (95 loc) · 2.23 KB
/
continuegame.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#pragma once
#include "types.h"
// alternative names:
// prev quest
// quest log
struct prev_quest_story {
char active;
char field_1[1639];
};
struct pq_npc_entry {
u8 zero;
u8 field_1;
u8 field_2;
u8 eventtype;
u16 script_env_2_is_enabled;
u8 one;
u8 field_7;
};
// 0203ADF8
extern u8 flashback_cursor;
// 0203ADF9
extern u8 prev_quest_display_number;
// 0203ADFA
extern u8 prev_quest_mode; // 0: normal
// 1: unknown
// 2: flashback
// 3: fade flashback to normal
// 0203ADFC
extern u16 word_203ADFC;
// 0203ADFE
extern u8 byte_203ADFE;
// 0203ADFF
extern u8 byte_203ADFF;
// 0203AE00
extern u8 pq_rbox;
// 0203AE04
extern u8 *prev_quest_postbuffer_cursor_backup; // points into sav1-area
// 0203AE08
extern u8 *prev_quest_postbuffer_cursor; // points into sav1-area
// 0203AE0C
extern u8 prev_quest_postbuffer[0x80];
// 0203AE8C
#define j5 funcptr_203AE8C
extern void (*funcptr_203AE8C)();
// 0203AE94
extern u8 byte_203AE94;
// 0203AE95
extern u8 byte_203AE95;
// 0203AE96
extern u8 byte_203AE96;
// 0203AE97
extern u8 byte_203AE97;
// 0203AE98
extern u8 byte_203AE98[0x100];
// 0203AF98
extern u16 pq_npc_cursor;
// 0203AF90
extern u8 byte_203AF90[0x80];
// 0203B01A
extern u16 pq_npc__script_env_2_is_enabled;
// 0203B01C
extern u16 word_203B01C;
// 0203B01E
extern u16 word_203B01E;
// 0203B020
extern u8 word_203B020;
// 0203B024
extern u16 prev_quest_prebuffer_length[0x10];
// ...
// 03005E88
extern u8 pq_npc_recording;
// 03005E8C
extern u16 pq_npc_end;
// 03005E94
struct pq_npc_entry *pq_npc_buffer;
// 03005E90
extern u32 dword_3005E90;
void c2_8056938(void);
void prev_quest_mode_set(u8 mode);
void j5_prev_quest_mode_1();
void j5_08110A3C();
bool questlog_active_at_cursor();
void game_continue(task_id c);
void flashback(void);
bool hmp1_8111000(void);
bool hmp1_8111038(void);
void flashback_2(void);
void render_prev_quest_text_if_appropriate();
// split into headers here?
void objc_npc_alternative(struct obj *obj);
// split into headers here?
u8 *prev_quest_write_x10_union_room(u8 *cursor);
u8 *prev_quest_read_x10_union_room(u8 *cursor);
u8 *prev_quest_write_x11_chat_with_trainers(u8 *cursor);
u8 *prev_quest_read_x11_chat_with_trainers(u8 *cursor);