Make it work with a raw memory dump.

This commit is contained in:
Empathic Qubit 2020-12-30 17:18:18 +00:00
parent 5aa18e58d1
commit 712d1ed72b

View file

@ -955,9 +955,9 @@ def readCharBitmaps(fileName):
# Shave off magic bytes and append zeroes so the length of the remaining
# data is an integer multiple of 8.
data = data[2:]
#data = data[2:]
while len(data) % 8 != 0:
data.append(0)
data += bytes([0])
if len(data) == 0:
print("No data found. ")