From 8d86abe8823acc8c44780ae15646ebb7f719c5ec Mon Sep 17 00:00:00 2001 From: yenatch Date: Wed, 11 Mar 2015 22:43:04 -0700 Subject: hotfix: gfx.py doesn't need baserom.gbc to work --- pokemontools/gfx.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pokemontools/gfx.py b/pokemontools/gfx.py index 53fc039..066811a 100644 --- a/pokemontools/gfx.py +++ b/pokemontools/gfx.py @@ -934,12 +934,15 @@ def get_pic_animation(tmap, w, h): return frame_text, bitmask_text -def dump_pic_animations(addresses={'bitmasks': 'BitmasksPointers', 'frames': 'FramesPointers'}, pokemon=pokemon_constants, rom=load_rom()): +def dump_pic_animations(addresses={'bitmasks': 'BitmasksPointers', 'frames': 'FramesPointers'}, pokemon=pokemon_constants, rom=None): """ The code to dump pic animations from rom is mysteriously absent. Here it is again, but now it dumps images instead of text. Said text can then be derived from the images. """ + + if rom is None: rom = load_rom() + # Labels can be passed in instead of raw addresses. for which, offset in addresses.items(): if type(offset) is str: -- cgit v1.2.3