add todo comment to givepoke

This commit is contained in:
Bryan Bishop 2013-11-12 11:03:18 -06:00
parent 7b1be358d8
commit 5355c3ce04

View File

@ -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