Skip to content

Commit

Permalink
Added sw version
Browse files Browse the repository at this point in the history
  • Loading branch information
DrSchottky committed Nov 30, 2021
1 parent 987c9ed commit d0105db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 2to3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}$")

Expand All @@ -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")
Expand Down

0 comments on commit d0105db

Please sign in to comment.