Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
updated to tell where the output would be for confused people
Browse files Browse the repository at this point in the history
  • Loading branch information
John committed Nov 13, 2018
1 parent e1b9f6d commit 3649eeb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def encrypt_save(data: (bytes, bytearray)) -> (bytes, bytearray):
# modify account here
account_mod_dec = asd.SerializeToString()
account_mod_enc = encrypt_save(account_mod_dec)
# output the modified account

# hero ID is in big endian for god knows why (maybe PS3 and Xbox 360 releases?)
last_hero_save = hexlify(pack(">Q", asd.digest.last_played_hero_id.id_low))
Expand Down Expand Up @@ -148,4 +149,5 @@ def encrypt_save(data: (bytes, bytearray)) -> (bytes, bytearray):
print("Unknown Affix: %s" % (affix))
# modify hero here
hero_mod_dec = hsd.SerializeToString()
hero_mod_enc = encrypt_save(hero_mod_dec)
hero_mod_enc = encrypt_save(hero_mod_dec)
# output the modified hero

0 comments on commit 3649eeb

Please sign in to comment.