diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-01-08 05:03:58 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-01-08 05:03:58 -0600 |
commit | dc0af171856a85c9b213ebe072735a5d92773e9b (patch) | |
tree | 75cc1166e5c3d4ca25ee0c2971f93bf4c6a493e7 /extras/analyze_incbins.py | |
parent | be26f828bd15fe98065cd6af28c2af15229aaba2 (diff) |
insert labels for map texts pointer lists
hg-commit-id: f374e6e126d7
Diffstat (limited to 'extras/analyze_incbins.py')
-rw-r--r-- | extras/analyze_incbins.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/extras/analyze_incbins.py b/extras/analyze_incbins.py index f7dbad0e..4ffd5ec6 100644 --- a/extras/analyze_incbins.py +++ b/extras/analyze_incbins.py @@ -223,13 +223,17 @@ def apply_diff(diff): fh.close() #apply the patch + os.system("cp ../pokered.asm ../pokered1.asm") os.system("patch ../pokered.asm temp.patch") #remove the patch os.system("rm temp.patch") #confirm it's working - subprocess.check_call("cd ../; make clean; LC_CTYPE=UTF-8 make", shell=True) + try: + subprocess.check_call("cd ../; make clean; LC_CTYPE=UTF-8 make", shell=True) + except Exception, exc: + os.system("mv ../pokered1.asm ../pokered.asm") if __name__ == "__main__": #load map headers |