mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Splat changes (#462)
* Merge changes from splat where it makes sense at this stage. * Update score, and script for what seems like new map file style. * format * Fix accidental inclusion of version specific details. * Match camera_init * Update Score * Near match for func_80046524 * Format * Woops, it's NON_MATCHING * Missed button pressed value * Work on documenting func_80046524 * MAtch func_80046524 * Match func_80046524 * Minor changes * Fix warnings in func_80046524 * format.py * Update README * Match func_800230D0 * Fix UB in mode_init_taj_race
This commit is contained in:
@@ -67,10 +67,10 @@ class DkrMapFile:
|
||||
functions = []
|
||||
lines = mapFile.read().split('\n')
|
||||
for line in lines:
|
||||
if line.startswith(' 0x00000000'):
|
||||
if line.startswith(' 0x8'):
|
||||
if '=' in line:
|
||||
line = line[0:line.find('=')-1]
|
||||
address = int(line[26:26+8], 16)
|
||||
address = int(line[18:18+8], 16)
|
||||
if address >= CODE_START and address < CODE_END:
|
||||
symbol = line[line.rfind(' ')+1:]
|
||||
functions.append((symbol, address))
|
||||
|
||||
Reference in New Issue
Block a user