diff options
Diffstat (limited to 'pokemontools/vba/vba.py')
-rw-r--r-- | pokemontools/vba/vba.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pokemontools/vba/vba.py b/pokemontools/vba/vba.py index e339f57..57e5e1b 100644 --- a/pokemontools/vba/vba.py +++ b/pokemontools/vba/vba.py @@ -1130,6 +1130,8 @@ class crystal(object): if not wram: self.inject_script_into_rom(asm=script, wram_address=address) else: + # TODO: move this into a separate function. Maybe use a context + # manager to restore wram at the end. mem = list(self.vba.memory) backup_wram = mem[address : address + len(script)] mem[address : address + len(script)] = script |