# HG changeset patch # User Thibaut Girka # Date 1327273386 -3600 # Node ID 2876c267be00d4356f3bacc0b08ea05e86f59419 # Parent e22e0d73f6142f0e87d2a086176169925c99ebc1 Add heuristics to extract character data from the demo .exe. diff --git a/pytouhou/formats/exe.py b/pytouhou/formats/exe.py --- a/pytouhou/formats/exe.py +++ b/pytouhou/formats/exe.py @@ -95,19 +95,28 @@ class SHT(object): # So far, this character definition seems to be valid. # Now, make sure the shoot function wrappers pass valid addresses - pe_file.seek_to_va(ptr1 + 4) - shtptr1, = unpack('