mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-08-09 10:47:24 -05:00
commit
7271993919
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user