Merge pull request #49 from kanzure/givepoke-todo

TODO in givepoke
This commit is contained in:
Bryan Bishop 2013-11-12 09:04:01 -08:00
commit 7271993919

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