mirror of
https://github.com/NinjaCheetah/WiiPy.git
synced 2025-04-26 13:21:01 -04:00
Fix fakesigning code in wad module
This commit is contained in:
parent
183498025a
commit
9abdf4af04
@ -92,7 +92,7 @@ def handle_wad(args):
|
|||||||
while test_hash[:2] != '00':
|
while test_hash[:2] != '00':
|
||||||
current_int += 1
|
current_int += 1
|
||||||
data_to_edit = ticket.unknown2
|
data_to_edit = ticket.unknown2
|
||||||
data_to_edit = int.to_bytes(current_int, 2) + data_to_edit[:2]
|
data_to_edit = int.to_bytes(current_int, 2) + data_to_edit[2:]
|
||||||
ticket.unknown2 = data_to_edit
|
ticket.unknown2 = data_to_edit
|
||||||
test_hash = hashlib.sha1(ticket.dump()[320:]).hexdigest()
|
test_hash = hashlib.sha1(ticket.dump()[320:]).hexdigest()
|
||||||
title.ticket = ticket
|
title.ticket = ticket
|
||||||
|
Loading…
x
Reference in New Issue
Block a user