mirror of
https://github.com/Threnklyn/nton.git
synced 2026-05-19 05:13:28 +02:00
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:
+5
-5
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user