bump version code in the pddbdbg.py script as well

This commit is contained in:
bunnie 2022-02-28 04:16:06 +08:00
parent dcbe9f122a
commit 65499eb0fc

View file

@ -571,7 +571,7 @@ class Basis:
#desc += ' DictPtr: {:x}\n'.format(self.dict_ptr)
return desc
def basis_aad(name, version=1, dna=0):
def basis_aad(name, version=0x01_01, dna=0):
name_bytes = bytearray(name, 'utf-8')
# name_bytes += bytearray(([0] * (Basis.MAX_NAME_LEN - len(name))))
name_bytes += version.to_bytes(4, 'little')
@ -739,7 +739,7 @@ class Fscb:
self.free_space[pp.page_number() * 4096] = pp
# this is the "AAD" used to encrypt the FastSpace
def aad(version=1, dna=0):
def aad(version=0x01_01, dna=0):
return bytearray([46, 70, 97, 115, 116, 83, 112, 97, 99, 101]) + version.to_bytes(4, 'little') + dna.to_bytes(8, 'little')
class SpaceUpdate: