mirror of
https://github.com/pret/pmd-sky.git
synced 2026-03-21 17:25:15 -05:00
sync_to_pmdsky_debug.py: Pass pmdsky_debug_section as an arg
This variable was being referenced as a global by sync_xmap_symbol. Pass it in as a local parameter instead.
This commit is contained in:
parent
a417962de9
commit
c2f4f07c30
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user