Merge pull request #55 from UsernameFodder/local-param

sync_to_pmdsky_debug.py: Pass pmdsky_debug_section as an arg
This commit is contained in:
AnonymousRandomPerson 2023-12-28 22:36:13 -06:00 committed by GitHub
commit eb600a887d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 @@ with YamlManager() as yaml_manager:
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)