Skip to content

Commit

Permalink
generator: fix UniqueID incrementing (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifehackerhansol committed Mar 15, 2022
1 parent 648b6af commit e82ef6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def makecia(cmdarg, root, path, title, output=None, randomize=False, tidlow=[]):
gamecodeint = int(hexlify(gamecode.encode()).decode(), 16)
uniqueid = hex(gamecodeint ^ ((gamecodeint) >> 27))[3:8]
while uniqueid in tidlow:
uniqueid = str(int(uniqueid, 16) + 1)
uniqueid = hex(int(uniqueid, 16) + 1)
makeromarg = f"{cmdarg}makerom -f cia -target t -exefslogo -rsf data/build-cia.rsf -elf data/forwarder.elf -banner data/banner.bin -icon data/output.smdh -DAPP_ROMFS=romfs -major 1 -minor 4 -micro 0 -DAPP_VERSION_MAJOR=1 "
if output:
makeromarg += f'-o "{output}" '
Expand Down

0 comments on commit e82ef6f

Please sign in to comment.