Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions richlibrary.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def parse(self):
## Bonus feature: Calculate and check the check sum csum
chk = self.generate_csum(dat, cmpids, dans)

return {'error': 0, 'cmpids': cmpids, 'csum_calc': chk, 'csum_file': csum,
return {'error': 0, 'compids': cmpids, 'csum_calc': chk, 'csum_file': csum,
'offset': dans}

def __pprint_cmpids(self, cmpids):
Expand All @@ -163,7 +163,7 @@ def __pprint_cmpids(self, cmpids):
print("-" * (20 + 16 + 16 + 32 + 39))

def pprint_header(self, data):
self.__pprint_cmpids(data['cmpids'])
self.__pprint_cmpids(data['compids'])
if data['csum_calc'] == data['csum_file']:
print("\x1b[32mChecksums match! (0x{:08x})".format(data['csum_calc']))
else:
Expand Down