From 5355c3ce04f8fd5cf3b3ff638c6d0a2e7e993016 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Tue, 12 Nov 2013 11:03:18 -0600 Subject: add todo comment to givepoke --- pokemontools/vba/vba.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pokemontools/vba/vba.py') diff --git a/pokemontools/vba/vba.py b/pokemontools/vba/vba.py index 10513c6..02fd99d 100644 --- a/pokemontools/vba/vba.py +++ b/pokemontools/vba/vba.py @@ -1073,6 +1073,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 -- cgit v1.2.3