Make it work with a raw memory dump.
This commit is contained in:
parent
5aa18e58d1
commit
712d1ed72b
1 changed files with 2 additions and 2 deletions
|
@ -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. ")
|
||||
|
|
Loading…
Add table
Reference in a new issue