diff --git a/nton/main.py b/nton/main.py index 9611f9a..a98ca59 100644 --- a/nton/main.py +++ b/nton/main.py @@ -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: diff --git a/nton/system_title_ids.py b/nton/title_ids.py similarity index 100% rename from nton/system_title_ids.py rename to nton/title_ids.py