From ab5f3bf92c5478f480685624e4f8a9960c771270 Mon Sep 17 00:00:00 2001 From: Mark Moxon Date: Sun, 26 Feb 2023 15:17:15 +0000 Subject: [PATCH] Make scramble addresses consistent --- src/elite-modify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/elite-modify.py b/src/elite-modify.py index fd5d684..5400ee1 100644 --- a/src/elite-modify.py +++ b/src/elite-modify.py @@ -485,7 +485,7 @@ print("[ Save ] gma6.encrypted") load_address = 0x1D00 - 2 seed = 0x36 scramble_from = 0x1D00 -scramble_to = 0x1D00 + (0x21D4 - 3) # File size - 3 +scramble_to = 0x1D00 + 0x21D1 # Set up an array to hold the gma5 binary, so we can modify it @@ -561,7 +561,7 @@ print("[ Save ] gma5.encrypted") load_address = 0x4000 - 2 seed = 0x8E scramble_from = 0x75E4 -scramble_to = 0x865A +scramble_to = 0x4000 + 0x465A # Set up an array to hold the gma4 binary, so we can modify it