Rename system_title_ids.py to title_ids.py

This is as it now contains both system titles and game titles.
This commit is contained in:
rlaphoenix
2022-11-12 09:08:24 +00:00
parent 5c8623aefe
commit 3599f44683
2 changed files with 5 additions and 5 deletions
+5 -5
View File
@@ -11,7 +11,7 @@ from pathlib import Path
import click as click
from nton import __version__, nstool, system_title_ids
from nton import __version__, nstool, title_ids
from nton.constants import Directories, Binaries, Files
@@ -93,14 +93,14 @@ def build(
log.error(f"The Title ID \"{id_}\" is an invalid hex string. It must be a-fA-f0-9.")
return 1
id_ = id_.lower()
if id_ in system_title_ids.ALL_SYSTEM:
if id_ in title_ids.ALL_SYSTEM:
log.critical(f"The Title ID \"{id_}\" is a reserved System Title! Using it is unsafe!")
return 2
if id_ in system_title_ids.game_title_ids:
log.warning(f"The Title ID \"{id_}\" is already used by \"{system_title_ids.game_title_ids[id_]}\".")
if id_ in title_ids.game_title_ids:
log.warning(f"The Title ID \"{id_}\" is already used by \"{title_ids.game_title_ids[id_]}\".")
else:
id_ = "0100000000000000"
while id_ in system_title_ids.ALL:
while id_ in title_ids.ALL:
id_ = "01%s000" % os.urandom(6).hex()[:-1]
if rom: