mirror of
https://github.com/pret/pmd-sky.git
synced 2026-04-25 15:42:34 -05:00
Added ASM symbol hack to pmdsky-debug sync blacklist
This commit is contained in:
parent
1331886e47
commit
d37282fba3
|
|
@ -17,7 +17,7 @@ LANGUAGE_KEYS_PMDSKY_DEBUG_TO_XMAP = {
|
|||
LANGUAGE_KEYS_XMAP_TO_PMDSKY_DEBUG = {value: key for key, value in LANGUAGE_KEYS_PMDSKY_DEBUG_TO_XMAP.items()}
|
||||
|
||||
# Symbols with duplicate addresses that should be ignored.
|
||||
SYMBOL_BLACKLIST = set([
|
||||
PMDSKY_DEBUG_SYMBOL_BLACKLIST = set([
|
||||
'GAME_STATE_VALUES',
|
||||
'MEMORY_ALLOCATION_TABLE'
|
||||
])
|
||||
|
|
@ -81,7 +81,7 @@ def read_pmdsky_debug_symbols() -> Dict[str, Dict[str, Dict[int, SymbolDetails]]
|
|||
|
||||
addresses: int | List[int] = symbol['address'][language]
|
||||
symbol_name: str = symbol['name']
|
||||
if symbol_name in SYMBOL_BLACKLIST:
|
||||
if symbol_name in PMDSKY_DEBUG_SYMBOL_BLACKLIST:
|
||||
continue
|
||||
|
||||
if 'aliases' in symbol:
|
||||
|
|
|
|||
|
|
@ -8,6 +8,11 @@ HEADER_FOLDER = 'include'
|
|||
XMAP_PATH_ARM7 = os.path.join('sub', 'build', 'arm7.nef.xMAP')
|
||||
MAIN_LSF_PATH = 'main.lsf'
|
||||
|
||||
# Symbols with duplicate addresses that should be ignored.
|
||||
XMAP_SYMBOL_BLACKLIST = set([
|
||||
'AI_POTENTIAL_ATTACK_TARGET_WEIGHTS_2'
|
||||
])
|
||||
|
||||
"""
|
||||
Dictionary format:
|
||||
{
|
||||
|
|
@ -78,6 +83,10 @@ def read_xmap_symbols_for_language(language: str) -> Dict[str, Dict[int, SymbolD
|
|||
elif current_section is not None and line.startswith(' ') and ('.text' in line or '.itcm' in line or line_is_data(line)) and len(line) > 28 and line[28] not in NON_FUNCTION_SYMBOLS:
|
||||
symbol_split = line[28:-1].split('\t')
|
||||
symbol_name = symbol_split[0]
|
||||
|
||||
if symbol_name in XMAP_SYMBOL_BLACKLIST:
|
||||
continue
|
||||
|
||||
symbol_address = int(line[2:10], 16)
|
||||
if line_is_data(line):
|
||||
if not symbol_name.startswith('$'):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user