Skip to content

Commit 123895e

Browse files
committed
Leave prologue
1 parent 211eb94 commit 123895e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

scripts/gen.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@
1010
with open(binary_path, "rb") as f:
1111
code = f.read()
1212

13-
# remove prologue
14-
i = 0
15-
for i, byte in enumerate(code):
16-
if byte not in range(0x50, 0x58) and byte != 0x41:
17-
break
18-
code = code[i:]
19-
2013
rem = len(code) % 8
2114
if rem:
2215
code += b"\x00" * (8 - rem)

0 commit comments

Comments
 (0)