mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
unknown_080500.c data section (second half)
This commit is contained in:
committed by
Antonio Castelli
parent
4284f37e51
commit
35acbac8ce
+1573
-1557
File diff suppressed because it is too large
Load Diff
+2
-1
@@ -20,10 +20,11 @@ typedef struct MenuElement {
|
||||
/* 0x10 */ u8 opacity;
|
||||
/* 0x11 */ u8 textType;
|
||||
/* 0x12 */ u8 textAlignFlags;
|
||||
/* 0x13 */ u8 unk13; // Source type? 0 = ascii text, 7 = texture?
|
||||
/* 0x13 */ u8 unk13; // Source type? 0 = ascii text, 2 = number, 7 = texture
|
||||
union {
|
||||
/* 0x14 */ char* asciiText; // Pointer to ascii text to be displayed on the screen.
|
||||
/* 0x14 */ u32* texture; // Pointer to texture to be displayed on the screen.
|
||||
/* 0x14 */ s32* number; // Pointer to a number to be displayed on the screen.
|
||||
} source;
|
||||
/* 0x18 */ u16 backgroundRed;
|
||||
/* 0x1A */ u16 backgroundGreen;
|
||||
|
||||
+611
-63
File diff suppressed because it is too large
Load Diff
@@ -65,7 +65,7 @@ class GenerateLD:
|
||||
self.gen_newline()
|
||||
|
||||
def gen_ucode_text_section(self):
|
||||
self.gen_line('.ucodeText 0 : AT(romPos)')
|
||||
self.gen_line('.ucodeText . : AT(romPos)')
|
||||
self.gen_open_block()
|
||||
self.gen_line(BUILD_DIR + '/asm/assets/ucode_text.o(.text);')
|
||||
self.gen_close_block()
|
||||
@@ -73,7 +73,7 @@ class GenerateLD:
|
||||
self.gen_newline()
|
||||
|
||||
def gen_data_section(self):
|
||||
self.gen_line('.main_data 0x80000400 : AT(romPos) SUBALIGN(16)')
|
||||
self.gen_line('.main_data . : AT(romPos) SUBALIGN(16)')
|
||||
self.gen_open_block()
|
||||
for file in self.files:
|
||||
self.gen_line(file[0] + '(.data);')
|
||||
@@ -83,7 +83,7 @@ class GenerateLD:
|
||||
self.gen_newline()
|
||||
|
||||
def gen_ucode_data_section(self):
|
||||
self.gen_line('.ucodeData 0 : AT(romPos)')
|
||||
self.gen_line('.ucodeData . : AT(romPos)')
|
||||
self.gen_open_block()
|
||||
self.gen_line(BUILD_DIR + '/asm/assets/ucode_data.o(.text);')
|
||||
self.gen_close_block()
|
||||
|
||||
Reference in New Issue
Block a user