Skip to content

Commit cecb00b

Browse files
committed
beautify user output
1 parent ed5240e commit cecb00b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Authorize.auz

patch_ableton.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ def replace_signkey_in_file(file_path, old_signkey, new_signkey):
9595
new_signkey_bytes = bytes.fromhex(new_signkey)
9696

9797
if old_signkey_bytes not in content:
98-
print(f"The old signkey '{old_signkey}' was not found in the file.")
98+
if new_signkey_bytes in content:
99+
print(f"The new signkey \n'{new_signkey}' \nis already present in the file. Ableton is already patched.")
100+
else:
101+
print(f"Neither the old nor the new signkey was found in the file. You may be running an unsupported version or a different patch.")
99102
else:
100103
print(f"The old signkey '{old_signkey}' was found. Replacing...")
101104

0 commit comments

Comments
 (0)