mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-09-26 03:22:44 -05:00
add todo comment to givepoke
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user