diff options
author | yenatch <yenatch@gmail.com> | 2015-03-11 22:43:04 -0700 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2015-03-11 22:43:04 -0700 |
commit | 8d86abe8823acc8c44780ae15646ebb7f719c5ec (patch) | |
tree | a85173de577ad9511728a13d25f8d2e39d3b2b18 | |
parent | 68eae566eca944bc116b5a1301ff63aba8a35c99 (diff) |
hotfix: gfx.py doesn't need baserom.gbc to work
-rw-r--r-- | pokemontools/gfx.py | 5 |
1 files changed, 4 insertions, 1 deletions
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: |