fix pm_effects segment not linking correctly on non-clean configures (#344)

This commit is contained in:
alex 2021-07-27 12:36:31 +01:00 committed by GitHub
parent 2e66caf500
commit 390e188de5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,9 @@ glabel {name}
def effect_path(self, effect):
return options.get_build_path() / "asm" / "effects" / f"{effect}.s"
def scan(self, rom_bytes):
def __init__(self, rom_start, rom_end, type, name, vram_start, extract, given_subalign, given_is_overlay, given_dir, args, yml):
super().__init__(rom_start, rom_end, type, name, vram_start, extract, given_subalign, given_is_overlay, given_dir, args, yml)
with open(options.get_asm_path() / ".." / "effects.yaml") as f:
self.effects = yaml.load(f.read(), Loader=yaml.SafeLoader)