mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2025-01-04 15:31:01 +00:00
Fixed #13: filename/ext need to be bytes, not str in py3
This commit is contained in:
parent
0f5d9b845e
commit
80943254b4
@ -12,11 +12,11 @@ class KBootDirent(AtariDosDirent):
|
|||||||
self.starting_sector = 4
|
self.starting_sector = 4
|
||||||
self.basename = image.filename
|
self.basename = image.filename
|
||||||
if not self.basename:
|
if not self.basename:
|
||||||
self.basename = "KBOOT"
|
self.basename = b"KBOOT"
|
||||||
if self.basename == self.basename.upper():
|
if self.basename == self.basename.upper():
|
||||||
self.ext = "XEX"
|
self.ext = b"XEX"
|
||||||
else:
|
else:
|
||||||
self.ext = "xex"
|
self.ext = b"xex"
|
||||||
start, size = image.header.get_pos(4)
|
start, size = image.header.get_pos(4)
|
||||||
i = image.header.header_offset + 9
|
i = image.header.header_offset + 9
|
||||||
count = image.bytes[i] + 256 * image.bytes[i+1] + 256 * 256 *image.bytes[i + 2]
|
count = image.bytes[i] + 256 * image.bytes[i+1] + 256 * 256 *image.bytes[i + 2]
|
||||||
|
Loading…
Reference in New Issue
Block a user