Skip to content

Commit bb6dec8

Browse files
committed
Print progress of encryptitem and copyitem
1 parent af34151 commit bb6dec8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opscrypto.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ def encryptitem(key, item, directory, pos, wf):
498498
filename = item.attrib["filename"]
499499
if filename == "":
500500
return item, pos
501+
print(f'Encrypting {filename}, pos={pos}')
501502
filename = os.path.join(directory, filename)
502503
start = pos // 0x200
503504
item.attrib["FileOffsetInSrc"] = str(start)
@@ -524,6 +525,7 @@ def copyitem(item, directory, pos, wf):
524525
filename = item.attrib["filename"]
525526
if filename == "":
526527
return item, pos
528+
print(f'Copying {filename} @ pos={pos}')
527529
filename = os.path.join(directory, filename)
528530
start = pos // 0x200
529531
item.attrib["FileOffsetInSrc"] = str(start)

0 commit comments

Comments
 (0)