1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-14 13:30:47 +00:00

Fix ichaindis.py always outputting an unsigned value (#435)

This commit is contained in:
Dragorn421 2020-10-04 04:38:39 +02:00 committed by GitHub
parent 686b44d8f8
commit 2cea0d8b82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,6 +92,8 @@ def main():
t = (entry >> 27) & 0xF t = (entry >> 27) & 0xF
offset = ((entry) >> 16) & 0x7FF offset = ((entry) >> 16) & 0x7FF
value = (entry) & 0xFFFF value = (entry) & 0xFFFF
if value >= 0x8000 and not ICHAIN_MACROS[t].startswith('ICHAIN_U'):
value -= 0x10000
var_name = '{0:X}'.format(offset) var_name = '{0:X}'.format(offset)