Skip to content

Commit 4110a09

Browse files
committed
Merge branch 'Dev' into dev-fenhl
# Conflicts: # ASM/build/asm_symbols.txt # ASM/build/bundle.o # ASM/build/c_symbols.txt # ASM/c/debug.h # data/generated/patch_symbols.json # data/generated/rom_patch.txt # data/generated/symbols.json
2 parents e0b5100 + 9e07175 commit 4110a09

File tree

18 files changed

+39328
-39113
lines changed

18 files changed

+39328
-39113
lines changed

ASM/build/asm_symbols.txt

Lines changed: 745 additions & 735 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ASM/build/bundle.o

1.22 KB
Binary file not shown.

ASM/build/c_symbols.txt

Lines changed: 727 additions & 720 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ASM/c/debug.c

Lines changed: 182 additions & 106 deletions
Large diffs are not rendered by default.

ASM/c/debug.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,17 @@ static uint8_t debugNumberIsInUsage[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
8484
static int32_t debugNumbers[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
8585
static float debugNumbersFloat[10] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
8686
static menu_index_t current_menu_indexes = {0, 0, 0, 0, 0, 0, 0, 0};
87-
static uint8_t show_warp_menu = 0;
87+
static bool show_warp_menu = 0;
8888

8989
typedef void(*usebutton_t)(z64_game_t* game, z64_link_t* link, uint8_t item, uint8_t button);
9090
#define z64_usebutton ((usebutton_t) 0x8038C9A0)
9191

9292
void debug_utilities(z64_disp_buf_t* db);
9393
void draw_debug_menu(z64_disp_buf_t* db);
9494
void draw_debug_numbers(z64_disp_buf_t* db);
95-
int debug_menu_is_drawn();
95+
bool debug_menu_is_drawn();
9696
void draw_debug_int(int whichNumber, int numberToShow);
9797
void draw_debug_float(int whichNumber, float numberToShow);
98+
void manage_debug_inputs();
9899

99100
#endif

ASM/c/message.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "message.h"
2-
#include "z64.h"
32
#include "stdbool.h"
43
#include "save.h"
54
#include "dungeon_info.h"
@@ -26,7 +25,7 @@ char FILENAME_ENCODING[256] = {
2625

2726
extern uint8_t PLAYER_NAMES[256][8];
2827
extern uint8_t PLAYER_NAME_ID;
29-
28+
uint16_t current_textbox_id;
3029
// Helper function for adding characters to the decoded message buffer
3130
void Message_AddCharacter(MessageContext* msgCtx, void* pFont, uint32_t* pDecodedBufPos, uint32_t* pCharTexIdx, uint8_t charToAdd) {
3231
uint32_t decodedBufPosVal = *pDecodedBufPos;
@@ -219,6 +218,14 @@ bool Message_Decode_Additional_Control_Codes(uint8_t currChar, uint32_t* pDecode
219218
}
220219
}
221220

221+
void grab_textbox_id(z64_game_t* play, uint16_t textId)
222+
{
223+
// Displaced code
224+
Message_OpenText(play, textId);
225+
226+
current_textbox_id = textId;
227+
}
228+
222229
uint8_t shooting_gallery_show_message = 0;
223230
// Displays a warning message if player did adult shooting gallery without bow.
224231
void shooting_gallery_message() {

ASM/c/message.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#ifndef MESSAGE_H
22
#define MESSAGE_H
33

4+
#include "z64.h"
5+
6+
extern uint16_t current_textbox_id;
7+
void Message_OpenText(z64_game_t* play, uint16_t textId);
48
void display_misc_messages();
59

610
#endif

ASM/ootSymbols.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ CutsceneFlags_Get = 0x8005991C;
2121
z64_Gfx_SetupDL_42Opa = 0x8007E868;
2222
Audio_StopCurrentMusic = 0x800C7684;
2323
sprintf = 0x800CE7b4;
24+
Message_OpenText = 0x800DC838;
2425
Fault_AddHungupAndCrashImpl = 0x800AF564;
2526
z64_ItemIcons = 0x800F8D2C;
2627
z64_SfxDefaultPos = 0x80104394;

ASM/src/hacks.asm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4234,6 +4234,7 @@ DemoEffect_DrawJewel_AfterHook:
42344234
.include "hacks/z_parameter.asm"
42354235
.include "hacks/ovl_en_po_field.asm"
42364236
.include "hacks/z_title.asm"
4237+
.include "hacks/message.asm"
42374238
.include "hacks/z_file_choose.asm"
42384239
.include "hacks/ovl_en_changer.asm"
42394240
.include "hacks/ovl_en_ssh.asm"

ASM/src/hacks/message.asm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.headersize(0x800D5EF0 - 0x00B4BE50)
2+
.org 0x800DCE38
3+
; Replaces jal func_800DC838
4+
jal grab_textbox_id

0 commit comments

Comments
 (0)