summaryrefslogtreecommitdiff
path: root/extras/analyze_incbins.py
diff options
context:
space:
mode:
authorstag019 <stag019@gmail.com>2012-01-18 01:45:10 -0500
committerstag019 <stag019@gmail.com>2012-01-18 01:45:10 -0500
commit549637d0dfbb0adedcd6b05ec028c58044c8c46f (patch)
tree7a0cebc72707797842f284d1bcaa6c2f543f24c8 /extras/analyze_incbins.py
parent73d483e5d48df6ca9177172e0dc0a3d690af6e1d (diff)
parent25cc7be1a5e1ab2484bbfacf35033ffb5259baba (diff)
fucking you and yours
hg-commit-id: 8a2a1f3736f2
Diffstat (limited to 'extras/analyze_incbins.py')
-rw-r--r--extras/analyze_incbins.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/extras/analyze_incbins.py b/extras/analyze_incbins.py
index 353e5ea6..9069a3ae 100644
--- a/extras/analyze_incbins.py
+++ b/extras/analyze_incbins.py
@@ -79,7 +79,9 @@ def process_incbins():
"end": end,
}
- processed_incbins[line_number] = processed_incbin
+ #don't add this incbin if the interval is 0
+ if interval != 0:
+ processed_incbins[line_number] = processed_incbin
def find_incbin_to_replace_for(address):
"""returns a line number for which incbin to edit
@@ -235,7 +237,8 @@ def apply_diff(diff, try_fixing=True):
#confirm it's working
try:
- subprocess.check_call("cd ../; make clean; LC_CTYPE=UTF-8 make", shell=True)
+ subprocess.check_call("cd ../; make clean; LC_CTYPE=C make", shell=True)
+ return True
except Exception, exc:
if try_fixing:
os.system("mv ../common1.asm ../common.asm")