24 lines
535 B
Python
24 lines
535 B
Python
import sys
|
|
|
|
def load(path):
|
|
with open(path, "rb") as f:
|
|
return f.read()
|
|
|
|
if len(sys.argv) != 4:
|
|
print("Uso: python3 diff3.py A.srm B.srm C.srm")
|
|
sys.exit(1)
|
|
|
|
A = load(sys.argv[1])
|
|
B = load(sys.argv[2])
|
|
C = load(sys.argv[3])
|
|
|
|
if not (len(A) == len(B) == len(C)):
|
|
print("Los saves no tienen el mismo tamaño.")
|
|
sys.exit(1)
|
|
|
|
print("Offsets que cambian SOLO al abrir el armario:\n")
|
|
|
|
for i, (a, b, c) in enumerate(zip(A, B, C)):
|
|
if a != c and a == b:
|
|
print(f"Offset 0x{i:05X}: {a:02X} → {c:02X}")
|