diff --git a/tools/sync_pmdsky_debug/sync_to_pmdsky_debug.py b/tools/sync_pmdsky_debug/sync_to_pmdsky_debug.py index 73f00dbb..7aac60e4 100644 --- a/tools/sync_pmdsky_debug/sync_to_pmdsky_debug.py +++ b/tools/sync_pmdsky_debug/sync_to_pmdsky_debug.py @@ -38,7 +38,7 @@ def find_symbol_in_header(symbol_name: str, is_data: bool, header_contents: List return i return None -def sync_xmap_symbol(address: int, symbol: SymbolDetails, language: str, yaml_manager: YamlManager): +def sync_xmap_symbol(address: int, symbol: SymbolDetails, language: str, yaml_manager: YamlManager, pmdsky_debug_section: Dict[int, SymbolDetails]): if default_symbol_name.match(symbol.name): return @@ -265,4 +265,4 @@ def sync_xmap_symbol(address: int, symbol: SymbolDetails, language: str, yaml_ma pmdsky_debug_section = {} for address, symbol in xmap_section.items(): - sync_xmap_symbol(address, symbol, language, yaml_manager) + sync_xmap_symbol(address, symbol, language, yaml_manager, pmdsky_debug_section)