Skip to content

Commit b7866ef

Browse files
committed
show version, add note and style
1 parent 2eb0824 commit b7866ef

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

patch_ableton.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ class Dummy:
1919
RESET = RED = WHITE = GREEN = LIGHTBLACK_EX = BRIGHT = ''
2020
Fore = Style = Dummy()
2121

22+
patcher_version = "v3.0.0"
23+
2224
RED = Fore.RED + Style.BRIGHT
2325
WHITE = Fore.WHITE + Style.BRIGHT
2426
GREY = Fore.LIGHTBLACK_EX + Style.NORMAL
2527
GREEN = Fore.GREEN + Style.BRIGHT
28+
YELLOW = Fore.YELLOW + Style.BRIGHT
2629
RESET = Style.RESET_ALL
2730

2831
def is_admin():
@@ -93,7 +96,7 @@ def replace_signkey_in_file(file_path, old_signkey, new_signkey):
9396
new_signkey_bytes = bytes.fromhex(new_signkey)
9497
if old_signkey_bytes not in content:
9598
if new_signkey_bytes in content:
96-
print(WHITE + "The new signkey is already present in the file. Ableton is already patched." + RESET)
99+
print(YELLOW + "The new signkey is already present in the file. Ableton is already patched." + RESET)
97100
else:
98101
print(RED + "Neither the old nor the new signkey was found in the file. You may be running an unsupported version or a different patch." + RESET)
99102
else:
@@ -243,7 +246,9 @@ def main():
243246
\/ \/ \/ \/ \/ \/ \/ \/ \/
244247
""" + RESET)
245248
print(WHITE + "Made by " + RED + "devilAPI" + RESET)
249+
print(WHITE + "Version: " + RED + patcher_version + RESET)
246250
print(WHITE + "GitHub: " + GREY + "https://github.com/devilAPI/abletonCracker/" + RESET + "\n")
251+
print(YELLOW + "NOTE: Make sure Ableton Live is not running while patching." + RESET)
247252

248253
config_file = 'config.json'
249254
try:

undo_patch.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ class Dummy:
1414
RESET = RED = WHITE = GREEN = LIGHTBLACK_EX = BRIGHT = ''
1515
Fore = Style = Dummy()
1616

17+
patcher_version = "v3.0.0"
18+
1719
RED = Fore.RED + Style.BRIGHT
1820
WHITE = Fore.WHITE + Style.BRIGHT
1921
GREY = Fore.LIGHTBLACK_EX + Style.NORMAL
2022
GREEN = Fore.GREEN + Style.BRIGHT
23+
YELLOW = Fore.YELLOW + Style.BRIGHT
2124
RESET = Style.RESET_ALL
2225

2326
def is_admin():
@@ -174,7 +177,9 @@ def main():
174177
\/ \/ \/ \/ \/ \/ \/ \/ \/
175178
""" + RESET)
176179
print(WHITE + "Made by " + RED + "devilAPI" + RESET)
180+
print(WHITE + "Version: " + RED + patcher_version + RESET)
177181
print(WHITE + "GitHub: " + GREY + "https://github.com/devilAPI/abletonCracker/" + RESET + "\n")
182+
print(YELLOW + "NOTE: Make sure Ableton Live is not running while patching." + RESET)
178183

179184
config_file = 'config.json'
180185

0 commit comments

Comments
 (0)