From d0105db825e1c404abd88e5cf996231ad452ad47 Mon Sep 17 00:00:00 2001 From: DrSchottky <6048264+DrSchottky@users.noreply.github.com> Date: Tue, 30 Nov 2021 21:07:42 +0100 Subject: [PATCH] Added sw version --- 2to3.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/2to3.py b/2to3.py index 8d9e2c1..d5799ad 100644 --- a/2to3.py +++ b/2to3.py @@ -13,6 +13,7 @@ from rc4 import RC4 _1BL_KEY = bytes.fromhex("DD88AD0C9ED669E7B56794FB68563EFA") +_SW_VER = "v1.0.0" CPUKEY_EXP = re.compile(r"^[0-9a-fA-F]{32}$") @@ -39,7 +40,7 @@ def cpukey_type(key: str) -> bytes: raise ArgumentTypeError("CPU key isn't a 32 character hex string") def main() -> None: - parser = ArgumentParser(description="RGH2 to RGH3 by DrSchottky") + parser = ArgumentParser(description=f"RGH2 to RGH3 by DrSchottky {_SW_VER}") parser.add_argument("eccfile", type=FileType("rb"), help="The ECC file to apply") parser.add_argument("infile", type=FileType("rb"), help="The flash image to convert to RGH3") parser.add_argument("outfile", type=FileType("wb"), help="The flash image to output to")