Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

Launcher: drop the build failure hint for a game without a profile

v0lumehic2e0fb35d9d3
diff --git a/frontend-qt/nspb_qt/build_failure.py b/frontend-qt/nspb_qt/build_failure.py
index a4574955..92689169 100644
--- a/frontend-qt/nspb_qt/build_failure.py
+++ b/frontend-qt/nspb_qt/build_failure.py
@@ -25,7 +25,6 @@ A32_PROGRAM = 'a32Program'
KEYS = 'keys'
SEVERAL_GAMES = 'severalGames'
NO_TITLE_ID = 'noTitleID'
-NO_PROFILE = 'noProfile'
KEYS_OLD = 'keysOld'
DISK_FULL = 'diskFull'
CLOUD_FOLDER = 'cloudFolder'
@@ -48,7 +47,6 @@ TABLE: list[tuple[str, str, str]] = [
('keys.old', KEYS_OLD, r'the keys are older than the game'),
('games.several', SEVERAL_GAMES, r'more than one game in the folder'),
('games.noTitleID', NO_TITLE_ID, r'no NSP with a readable title ID in '),
- ('games.noProfile', NO_PROFILE, r'packs only a game with a profile'),
('disk.low', DISK_FULL, r'less than [0-9]+ GB free on the volume of '),
('disk.full', DISK_FULL, r'No space left on device'),
('icloud.detritus', CLOUD_FOLDER, r'resource fork, Finder information, or similar detritus not allowed'),
@@ -63,7 +61,7 @@ OVERRIDE_FLAGS = {
}
KINDS = [ROSETTA, TRANSLATOR, ZBIC, IOS_SDK, CLT_SELECTED, OTHER_METAL, SHADER_REGRESSION, DAMAGED_NSP, A32_PROGRAM,
- KEYS, SEVERAL_GAMES, NO_TITLE_ID, NO_PROFILE, KEYS_OLD, DISK_FULL, CLOUD_FOLDER, VOLUME_FORMAT]
+ KEYS, SEVERAL_GAMES, NO_TITLE_ID, KEYS_OLD, DISK_FULL, CLOUD_FOLDER, VOLUME_FORMAT]
# The Swift app has four more rows that no log line sets (a drive that is gone, a signing team, a device transfer):
# they belong to the Mac launcher's install on a device and to /Volumes, which this front end does not have.
# cloudFolder is a row of the table, so it is here, but the check that stops a build before it starts is the Mac launcher's.
diff --git a/frontend/Sources/NXCore/BuildFailureClassifier.swift b/frontend/Sources/NXCore/BuildFailureClassifier.swift
index a7d6131b..3db76928 100644
--- a/frontend/Sources/NXCore/BuildFailureClassifier.swift
+++ b/frontend/Sources/NXCore/BuildFailureClassifier.swift
@@ -21,7 +21,6 @@ package enum BuildFailureClassifier {
("keys.old", .keysOld, "the keys are older than the game"),
("games.several", .severalGames, "more than one game in the folder"),
("games.noTitleID", .noTitleID, "no NSP with a readable title ID in "),
- ("games.noProfile", .noProfile, "packs only a game with a profile"),
("disk.low", .diskFull, "less than [0-9]+ GB free on the volume of "),
("disk.full", .diskFull, "No space left on device"),
("icloud.detritus", .cloudFolder, "resource fork, Finder information, or similar detritus not allowed"),
diff --git a/frontend/Sources/NXCore/BuildFailureKind.swift b/frontend/Sources/NXCore/BuildFailureKind.swift
index 2a8e046a..cfd6866b 100644
--- a/frontend/Sources/NXCore/BuildFailureKind.swift
+++ b/frontend/Sources/NXCore/BuildFailureKind.swift
@@ -9,7 +9,6 @@ package enum BuildFailureKind: String, CaseIterable {
/// The inputs: the keys file, the game folder, a drive that is gone.
case keys, severalGames, noTitleID, driveMissing
/// A game folder or NUP (a Switch 2 game, GameFolder.swift) of a game the engine has no profile for: the script packs one only with a profile.
- case noProfile
/// prod.keys lacks the master key the game needs: the keys are older than the game (nx_extract's exit code 6, seedds/nxnative 3104c0a).
case keysOld
/// The build's and the install's own steps.
diff --git a/frontend/Tests/Fixtures/build_failures.json b/frontend/Tests/Fixtures/build_failures.json
index ea25403f..da963468 100644
--- a/frontend/Tests/Fixtures/build_failures.json
+++ b/frontend/Tests/Fixtures/build_failures.json
@@ -99,13 +99,6 @@
"fragment": "the keys are older than the game",
"text": "[RED] Game [0100000000010000][v0].nsp: prod.keys has no master_key_13 (master key 13, which came with firmware 19.0.0): the keys are older than the game; dump prod.keys again from a console on firmware 19.0.0 or later"
},
- {
- "id": "games.noProfile",
- "kind": "noProfile",
- "source": "scripts/build_ipa_from_nsp.py",
- "fragment": "packs only a game with a profile",
- "text": "[RED] a dump folder packs only a game with a profile, and 0400000000010000 has none: the survey that makes a provisional profile reads NSPs"
- },
{
"id": "disk.low",
"kind": "diskFull",
diff --git a/frontend/Tests/NX2AppleTests/BuildFailureTests.swift b/frontend/Tests/NX2AppleTests/BuildFailureTests.swift
index f627776b..c028f587 100644
--- a/frontend/Tests/NX2AppleTests/BuildFailureTests.swift
+++ b/frontend/Tests/NX2AppleTests/BuildFailureTests.swift
@@ -286,7 +286,7 @@ import NXModel
}
for (name, kind, lang) in [("hint-other-metal", BuildFailureKind.otherMetal, Lang.en), ("hint-ios-sdk", .iosSDK, .en), ("hint-damaged-nsp", .damagedNSP, .en),
("hint-other-metal-zh", .otherMetal, .zh)]
- + [BuildFailureKind.keys, .keysOld, .severalGames, .noTitleID, .noProfile, .driveMissing, .diskFull, .volumeFormat, .teamTaken, .noSigningAccount, .deviceTransfer].flatMap { k in
+ + [BuildFailureKind.keys, .keysOld, .severalGames, .noTitleID, .driveMissing, .diskFull, .volumeFormat, .teamTaken, .noSigningAccount, .deviceTransfer].flatMap { k in
[("row-\(k.rawValue)", k, Lang.en), ("row-\(k.rawValue)-zh", k, Lang.zh)] } {
let mStores = LauncherStores(defaults: testDefaults); let m = mStores.build
m.lang = CaptureLanguage.current(lang)
diff --git a/frontend/l10n/de.json b/frontend/l10n/de.json
index 9247aa48..bbfa64a4 100644
--- a/frontend/l10n/de.json
+++ b/frontend/l10n/de.json
@@ -548,8 +548,6 @@
"fail.keys.what": "Die Schlüsseldatei wurde nicht gefunden oder lässt sich nicht lesen.",
"fail.keysOld.next": "Das Spiel braucht einen Schlüssel, der mit einer neueren Switch-Systemversion kam. Aktualisiere deine eigene Switch, hole prod.keys erneut von ihr, wähle die neue Datei und baue dann erneut. Das Protokoll nennt den Schlüssel und die Systemversion.",
"fail.keysOld.what": "Deine prod.keys-Datei ist älter als das Spiel.",
- "fail.noProfile.next": "Switch 2-Spiele lassen sich nur bauen, wenn die Engine sie kennt. Aktualisiere die Engine oder warte, bis sie ein Profil für dieses Spiel hat.",
- "fail.noProfile.what": "Die Engine hat kein Profil für dieses Spiel, und ein Spielordner oder eine NUP-Datei baut nur ein Spiel mit Profil.",
"fail.noSigningAccount.next": "Öffne in Xcode „Settings → Accounts“, melde dich mit deiner Apple-ID an und stelle sicher, dass das Team aufgeführt ist. Baue dann erneut. Eine kostenlose Apple-ID genügt, und Xcode erstellt das Zertifikat selbst.",
"fail.noSigningAccount.what": "Xcode hat kein Signierkonto für das gewählte Team.",
"fail.noTitleID.next": "Benenne die Datei so um, dass sie ihre Title-ID enthält, etwa Spielname [0100XXXXXXXXXXXX].nsp, und verwende die ID genau dieses Pakets, denn Basisspiel, Update und DLC haben jeweils eine eigene. Baue dann erneut.\nEs kann auch sein, dass der Ordner keine .nsp-, .xci-, .nsz- oder .xcz-Dateien enthält (geteilte oder archivierte Teile wie .00 oder .rar werden nicht gelesen) oder dass die Dateien noch in iCloud liegen und nicht geladen sind. Wähle „Ordner zeigen“, um nachzusehen.",
@@ -932,9 +930,9 @@
"launch.modsOpen": "Mods-Ordner öffnen",
"launch.modsRefresh": "Aktualisieren",
"launch.none": "Dieser Build bringt keine Liste mit Startoptionen mit.",
+ "launch.opt.DM_FPS_TARGET.120": "120 fps",
"launch.opt.DM_FPS_TARGET.30": "30 fps",
"launch.opt.DM_FPS_TARGET.60": "60 fps",
- "launch.opt.DM_FPS_TARGET.120": "120 fps",
"launch.opt.DM_FULLSCREEN.0": "Fenster",
"launch.opt.DM_FULLSCREEN.1": "Vollbild",
"launch.opt.DM_LANG.de": "Deutsch",
diff --git a/frontend/l10n/en.json b/frontend/l10n/en.json
index f0642855..8228e938 100644
--- a/frontend/l10n/en.json
+++ b/frontend/l10n/en.json
@@ -546,8 +546,6 @@
"fail.keys.what": "The keys file was not found or can't be read.",
"fail.keysOld.next": "The game needs a key that came with a newer Switch system version. Update your own Switch, take prod.keys from it again, choose the new file and build again. The log names the key and the system version.",
"fail.keysOld.what": "Your prod.keys file is older than the game.",
- "fail.noProfile.next": "Switch 2 games build only when the engine knows them. Update the engine, or wait until the engine has a profile for this game.",
- "fail.noProfile.what": "The engine has no profile for this game, and a game folder or a NUP file builds only a game with one.",
"fail.noSigningAccount.next": "Open Xcode > Settings > Accounts, sign in with your Apple ID and make sure the team is listed, then build again. A free Apple ID is enough and Xcode creates the certificate itself.",
"fail.noSigningAccount.what": "Xcode has no signing account for the chosen team.",
"fail.noTitleID.next": "Rename the file to include its title ID, like Game Name [0100XXXXXXXXXXXX].nsp, using the ID of that exact package, since the base game, an update and DLC each have their own. Then build again.\nIt can also be that the folder has no .nsp, .xci, .nsz or .xcz files (split or archived parts such as .00 or .rar are not read), or that the files are still in iCloud and not downloaded. Choose Show folder to check.",
@@ -930,9 +928,9 @@
"launch.modsOpen": "Open mods folder",
"launch.modsRefresh": "Refresh",
"launch.none": "This build carries no list of launch options.",
+ "launch.opt.DM_FPS_TARGET.120": "120 fps",
"launch.opt.DM_FPS_TARGET.30": "30 fps",
"launch.opt.DM_FPS_TARGET.60": "60 fps",
- "launch.opt.DM_FPS_TARGET.120": "120 fps",
"launch.opt.DM_FULLSCREEN.0": "Window",
"launch.opt.DM_FULLSCREEN.1": "Fullscreen",
"launch.opt.DM_LANG.de": "German",
diff --git a/frontend/l10n/fr.json b/frontend/l10n/fr.json
index f87d51b1..b62e362e 100644
--- a/frontend/l10n/fr.json
+++ b/frontend/l10n/fr.json
@@ -541,8 +541,6 @@
"fail.keys.what": "Le fichier de clés est introuvable ou illisible.",
"fail.keysOld.next": "Le jeu a besoin d'une clé arrivée avec une version plus récente du système de la Switch. Mettez à jour votre propre Switch, récupérez à nouveau prod.keys, choisissez le nouveau fichier puis compilez à nouveau. Le journal indique la clé et la version du système.",
"fail.keysOld.what": "Votre fichier prod.keys est plus ancien que le jeu.",
- "fail.noProfile.next": "Les jeux Switch 2 ne se compilent que si le moteur les connaît. Mettez le moteur à jour, ou attendez qu'il ait un profil pour ce jeu.",
- "fail.noProfile.what": "Le moteur n'a pas de profil pour ce jeu, et un dossier de jeu ou un fichier NUP ne se compile que pour un jeu qui en a un.",
"fail.noSigningAccount.next": "Ouvrez Xcode > Settings > Accounts, connectez-vous avec votre identifiant Apple et vérifiez que l’équipe figure dans la liste, puis compilez à nouveau. Un identifiant Apple gratuit suffit et Xcode crée lui-même le certificat.",
"fail.noSigningAccount.what": "Xcode n’a pas de compte de signature pour l’équipe choisie.",
"fail.noTitleID.next": "Renommez le fichier pour y inclure son title ID, par exemple Nom du jeu [0100XXXXXXXXXXXX].nsp, avec l’ID de ce paquet précis, car le jeu de base, une mise à jour et un DLC ont chacun le leur. Puis compilez à nouveau.\nIl se peut aussi que le dossier ne contienne aucun fichier .nsp, .xci, .nsz ou .xcz (les parties découpées ou archivées comme .00 ou .rar ne sont pas lues), ou que les fichiers soient encore dans iCloud et non téléchargés. Choisissez Afficher le dossier pour vérifier.",
@@ -925,9 +923,9 @@
"launch.modsOpen": "Dossier des mods",
"launch.modsRefresh": "Actualiser",
"launch.none": "Ce build ne contient aucune liste d’options de lancement.",
+ "launch.opt.DM_FPS_TARGET.120": "120 i/s",
"launch.opt.DM_FPS_TARGET.30": "30 i/s",
"launch.opt.DM_FPS_TARGET.60": "60 i/s",
- "launch.opt.DM_FPS_TARGET.120": "120 i/s",
"launch.opt.DM_FULLSCREEN.0": "Fenêtre",
"launch.opt.DM_FULLSCREEN.1": "Plein écran",
"launch.opt.DM_LANG.de": "Allemand",
diff --git a/frontend/l10n/it.json b/frontend/l10n/it.json
index d1184304..1e87c4df 100644
--- a/frontend/l10n/it.json
+++ b/frontend/l10n/it.json
@@ -547,8 +547,6 @@
"fail.keys.what": "Il file delle chiavi non è stato trovato o non si può leggere.",
"fail.keysOld.next": "Il gioco ha bisogno di una chiave arrivata con una versione più recente del sistema della Switch. Aggiorna la tua Switch, prendi di nuovo prod.keys da lei, scegli il nuovo file e compila di nuovo. Il log indica la chiave e la versione del sistema.",
"fail.keysOld.what": "Il tuo file prod.keys è più vecchio del gioco.",
- "fail.noProfile.next": "I giochi Switch 2 si compilano solo se l’engine li conosce. Aggiorna l’engine, o aspetta che abbia un profilo per questo gioco.",
- "fail.noProfile.what": "L’engine non ha un profilo per questo gioco, e una cartella del gioco o un file NUP si compila solo per un gioco che ne ha uno.",
"fail.noSigningAccount.next": "Apri Xcode > Settings > Accounts, accedi con il tuo Apple ID e verifica che il team compaia nell’elenco, poi compila di nuovo. Basta un Apple ID gratuito e Xcode crea il certificato da solo.",
"fail.noSigningAccount.what": "Xcode non ha un account di firma per il team scelto.",
"fail.noTitleID.next": "Rinomina il file in modo che includa il suo title ID, come Nome del gioco [0100XXXXXXXXXXXX].nsp, usando l’ID di quel pacchetto specifico, perché gioco base, aggiornamento e DLC hanno ciascuno il proprio. Poi compila di nuovo.\nPuò anche darsi che la cartella non contenga file .nsp, .xci, .nsz o .xcz (le parti divise o archiviate come .00 o .rar non vengono lette), o che i file siano ancora in iCloud e non scaricati. Scegli Mostra cartella per controllare.",
@@ -931,9 +929,9 @@
"launch.modsOpen": "Apri cartella mod",
"launch.modsRefresh": "Aggiorna",
"launch.none": "Questa build non contiene un elenco di opzioni di avvio.",
+ "launch.opt.DM_FPS_TARGET.120": "120 fps",
"launch.opt.DM_FPS_TARGET.30": "30 fps",
"launch.opt.DM_FPS_TARGET.60": "60 fps",
- "launch.opt.DM_FPS_TARGET.120": "120 fps",
"launch.opt.DM_FULLSCREEN.0": "Finestra",
"launch.opt.DM_FULLSCREEN.1": "Schermo intero",
"launch.opt.DM_LANG.de": "Tedesco",
diff --git a/frontend/l10n/sv.json b/frontend/l10n/sv.json
index e00e2575..54e356ce 100644
--- a/frontend/l10n/sv.json
+++ b/frontend/l10n/sv.json
@@ -402,8 +402,6 @@
"fail.keys.what": "Nyckelfilen hittades inte eller går inte att läsa.",
"fail.keysOld.next": "Spelet behöver en nyckel som kom med en nyare systemversion för Switch. Uppdatera din egen Switch, hämta prod.keys från den igen, välj den nya filen och bygg sedan igen. Loggen anger nyckeln och systemversionen.",
"fail.keysOld.what": "Din prod.keys-fil är äldre än spelet.",
- "fail.noProfile.next": "Switch 2-spel går bara att bygga när motorn känner till dem. Uppdatera motorn eller vänta tills den har en profil för det här spelet.",
- "fail.noProfile.what": "Motorn har ingen profil för det här spelet, och en spelmapp eller en NUP-fil bygger bara ett spel med profil.",
"fail.noSigningAccount.next": "Öppna Xcode > Inställningar > Konton, logga in med ditt Apple-ID och kontrollera att teamet finns i listan. Bygg sedan igen. Ett gratis Apple-ID räcker och Xcode skapar certifikatet själv.",
"fail.noSigningAccount.what": "Xcode har inget signeringskonto för det valda teamet.",
"fail.noTitleID.next": "Byt namn på filen så att den innehåller sitt titel-ID, till exempel Game Name [0100XXXXXXXXXXXX].nsp, med ID:t för just det paketet, eftersom basspelet, en uppdatering och DLC har varsitt. Bygg sedan igen.\nDet kan också vara att mappen saknar .nsp-, .xci-, .nsz- eller .xcz-filer (delade eller arkiverade delar som .00 eller .rar läses inte), eller att filerna ligger kvar i iCloud och inte är nedladdade. Välj Visa mapp för att kontrollera.",
@@ -773,9 +771,9 @@
"launch.modsOpen": "Öppna moddmapp",
"launch.modsRefresh": "Uppdatera",
"launch.none": "Den här versionen saknar lista över startalternativ.",
+ "launch.opt.DM_FPS_TARGET.120": "120 fps",
"launch.opt.DM_FPS_TARGET.30": "30 fps",
"launch.opt.DM_FPS_TARGET.60": "60 fps",
- "launch.opt.DM_FPS_TARGET.120": "120 fps",
"launch.opt.DM_FULLSCREEN.0": "Fönster",
"launch.opt.DM_FULLSCREEN.1": "Helskärm",
"launch.opt.DM_LANG.de": "Tyska",
diff --git a/frontend/l10n/zh.json b/frontend/l10n/zh.json
index 1f7fb59c..6a3d0cb2 100644
--- a/frontend/l10n/zh.json
+++ b/frontend/l10n/zh.json
@@ -547,8 +547,6 @@
"fail.keys.what": "找不到密钥文件,或者无法读取它。",
"fail.keysOld.next": "这个游戏需要更新版本的 Switch 系统才带有的密钥。请更新你自己的 Switch,重新从它导出 prod.keys,选择新的文件后再构建。日志里写明了缺少的密钥和对应的系统版本。",
"fail.keysOld.what": "你的 prod.keys 文件比这个游戏旧。",
- "fail.noProfile.next": "Switch 2 游戏只有在引擎认识它时才能构建。请更新引擎,或等待引擎加入这个游戏的配置。",
- "fail.noProfile.what": "引擎没有这个游戏的配置,而游戏文件夹和 NUP 文件只能构建有配置的游戏。",
"fail.noSigningAccount.next": "请打开 Xcode > 设置 > 账户,登录你的 Apple ID,确认团队已列出,然后再构建。免费的 Apple ID 就够用,证书由 Xcode 自己创建。",
"fail.noSigningAccount.what": "Xcode 里没有所选团队的签名账户。",
"fail.noTitleID.next": "请把文件改名,加上它的标题 ID,例如 Game Name [0100XXXXXXXXXXXX].nsp,并使用这个安装包自己的 ID,因为本体、更新和 DLC 各有各的 ID。然后再构建。\n也可能是文件夹里没有 .nsp、.xci、.nsz 或 .xcz 文件(分卷或压缩包,例如 .00、.rar,不会被读取),或者文件还在 iCloud 里没有下载。点「显示文件夹」可以查看。",
@@ -931,9 +929,9 @@
"launch.modsOpen": "打开模组文件夹",
"launch.modsRefresh": "刷新",
"launch.none": "这个版本没有附带启动选项列表。",
+ "launch.opt.DM_FPS_TARGET.120": "120 fps",
"launch.opt.DM_FPS_TARGET.30": "30 fps",
"launch.opt.DM_FPS_TARGET.60": "60 fps",
- "launch.opt.DM_FPS_TARGET.120": "120 fps",
"launch.opt.DM_FULLSCREEN.0": "窗口",
"launch.opt.DM_FULLSCREEN.1": "全屏",
"launch.opt.DM_LANG.de": "德语",