From d29f193037cad147fe99aca6216a2e35346f5780 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sat, 21 Sep 2013 16:02:10 -0500 Subject: placeholder for get_memory_range But really, the old calls to get_memory_range should just be replaced with code that uses vba.memory[:] directly. --- pokemontools/vba/vba.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pokemontools/vba/vba.py') diff --git a/pokemontools/vba/vba.py b/pokemontools/vba/vba.py index e0ebe61..e107d90 100644 --- a/pokemontools/vba/vba.py +++ b/pokemontools/vba/vba.py @@ -40,6 +40,13 @@ registers = vba_wrapper.core.registers.Registers(vba) button_masks = vba_wrapper.core.VBA.button_masks button_combiner = vba_wrapper.core.VBA.button_combine +def get_memory_range(address, length): + """ + This is just a lame way to avoid converting some of the old + get_memory_range calls to use the vba.memory property. + """ + return list(vba.memory[address:address+length]) + def translate_chars(charz): result = "" for each in charz: -- cgit v1.2.3