If we can't detect original bytes, then check if patch is already
applied, if its not, provide further instructions
This commit is contained in:
1 parent
f86f7eaf1a
commit
75a2077b54
1 file changed
+8
-2
@@ -55,5 +55,11 @@ if patched_data != data:
|
||||
file.write(patched_data)
|
||||
print(f"Success: Byte sequence found and replaced in {path}.")
|
||||
else:
|
||||
print("Notice: The search sequence was not found in the binary, no changes were made.")
|
||||
|
||||
if data.find(new_and_improved_bytes) >= 1:
|
||||
print("The patch had already been applied to your .exe, no further changes were needed.")
|
||||
else:
|
||||
print("The original bytes were not found in the binary, and we couldn't detect the patch either. \n\n \
|
||||
Please try running the patch again with the full path to your .exe, like this:")
|
||||
print("python patch.py /path/to/trialsrising.exe")
|
||||
print("")
|
||||
print("If that still doesn't work, open an issue to let me know: https://github.com/kylefmohr/Trials-Rising-Steam-Deck-Patch/issues")
|
||||
Reference in new issue
Block a user