mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2026-06-05 19:56:57 +00:00
erpt: types are now a byte in 22.0.0
This commit is contained in:
parent
61ac03e22d
commit
00f987dd38
@ -344,7 +344,7 @@ def get_full(nxo):
|
|||||||
full = put_qword(full, offset, addend + LOAD_BASE)
|
full = put_qword(full, offset, addend + LOAD_BASE)
|
||||||
else:
|
else:
|
||||||
print('TODO r_type %d' % (r_type,))
|
print('TODO r_type %d' % (r_type,))
|
||||||
with open('E:\\full.bin', 'wb') as f:
|
with open('full.bin', 'wb') as f:
|
||||||
f.write(full)
|
f.write(full)
|
||||||
return full
|
return full
|
||||||
|
|
||||||
@ -414,6 +414,10 @@ def find_categories(full, num_fields):
|
|||||||
def find_types(full, num_fields):
|
def find_types(full, num_fields):
|
||||||
KNOWN = range(10) + [4, 4, 2, 4]
|
KNOWN = range(10) + [4, 4, 2, 4]
|
||||||
KNOWN_OLD = range(10) + [4, 4, 0, 4]
|
KNOWN_OLD = range(10) + [4, 4, 0, 4]
|
||||||
|
try:
|
||||||
|
ind = full.index(''.join(pk('<B', i) for i in KNOWN))
|
||||||
|
return list(up('<'+'B'*num_fields, full[ind:ind+num_fields]))
|
||||||
|
except ValueError:
|
||||||
try:
|
try:
|
||||||
ind = full.index(''.join(pk('<I', i) for i in KNOWN))
|
ind = full.index(''.join(pk('<I', i) for i in KNOWN))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user