mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Moved rodata from C to GLOBAL_ASM in unknown_071730
This commit is contained in:
@@ -65,6 +65,9 @@ def adjustAsmFile(asmFilepath, refs):
|
||||
if ref[0] == 'asciz':
|
||||
rodata += 'glabel ' + ref[1] + '\n'
|
||||
rodata += '.' + ref[0] + ' ' + ref[2] + '\n'
|
||||
strEnd = int(ref[1][-1:], 16) + len(ref[2].replace('\\', '')) - 2 + 1
|
||||
if strEnd % 4 != 0:
|
||||
rodata += '.ascii "' + ('\\0' * (4 - (strEnd % 4))) + '" # padding\n'
|
||||
elif ref[0] == 'double' or ref[0] == 'float':
|
||||
lateRodata += 'glabel ' + ref[1] + '\n'
|
||||
lateRodata += '.' + ref[0] + ' ' + ref[2] + '\n'
|
||||
|
||||
Reference in New Issue
Block a user