Skip to content

Commit

Permalink
Merge pull request #55 from UsernameFodder/local-param
Browse files Browse the repository at this point in the history
sync_to_pmdsky_debug.py: Pass pmdsky_debug_section as an arg
  • Loading branch information
AnonymousRandomPerson authored Dec 29, 2023
2 parents a417962 + c2f4f07 commit eb600a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/sync_pmdsky_debug/sync_to_pmdsky_debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)

0 comments on commit eb600a8

Please sign in to comment.