Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.
Swift apple-siliconcustom-formathomebrewiosipaipadipadosiphonemetalnative-portnintendo-switchnxnativeromfsswitch-games
Show the shader popup for both reasons, from the shaders_stale event (#320)
Daniel Johnson2b61bff81780
diff --git a/frontend-qt/nspb_qt/build_notes.py b/frontend-qt/nspb_qt/build_notes.pyindex 8fa21c34..6836528e 100644--- a/frontend-qt/nspb_qt/build_notes.py+++ b/frontend-qt/nspb_qt/build_notes.py@@ -1,14 +1,23 @@"""Build-script notes that the Qt window shows as popups. No Qt in here, so the tests run anywhere.-The Mac app matches the same text (`NXCore/BuildNotes.swift`).+The Mac app gets the same news as the `shaders_stale` event. The Qt window runs the build with `--progress lines`, which sends no+events, so it reads the note that build_ipa_from_nsp.py prints after the event, in every progress mode."""from __future__ import annotations-# Printed by build_ipa_from_nsp.py before it rebuilds the shader libraries (with the `shaders_stale` event), then its reason+# The note's start, then its reasonSTALE_SHADERS = '[NOTE] cached shader libraries cannot be reused'-CHAIN_REASON = 'the translation chain changed' # the reason the popup's text describes: a new shader translator+REASONS = {+ 'the translation chain changed': 'chain', # a new shader translator+ "the game profile's shader inputs changed": 'inputs',+}+# The popup's text for each reason, as the Mac app picks it+TEXT = {'chain': 'msg.shadersStale.chain', 'inputs': 'msg.shadersStale.inputs'}+TITLE = 'msg.shadersStale.title'-def chain_changed(text: str) -> bool:- """Whether text holds the note for a changed shader translator."""- return STALE_SHADERS in text and CHAIN_REASON in text+def stale_reason(text: str) -> str | None:+ """The reason of the stale-shaders note in text, as the event names it: 'chain' or 'inputs'. None when text holds no note."""+ if STALE_SHADERS not in text:+ return None+ return next((reason for words, reason in REASONS.items() if words in text), None)diff --git a/frontend-qt/nspb_qt/ui.py b/frontend-qt/nspb_qt/ui.pyindex 3b3be16b..0c0d1e43 100644--- a/frontend-qt/nspb_qt/ui.py+++ b/frontend-qt/nspb_qt/ui.py@@ -15,7 +15,7 @@ from PySide6.QtWidgets import ()from . import platform_util as pu-from .build_notes import chain_changed+from .build_notes import TEXT, TITLE, stale_reasonfrom .model import DepState, Modelfrom .style import CARD_EDGE, GREEN, MUTED, ORANGE, RED@@ -686,12 +686,15 @@ class MainWindow(QMainWindow):self.log.moveCursor(self.log.textCursor().MoveOperation.End)self.log.insertPlainText(s)self.log.moveCursor(self.log.textCursor().MoveOperation.End)- # A new shader translator: show a popup, once per build.+ # The shaders are rebuilt: show a popup, once per build.# Why a popup: a report asked why the shaders were building again, because the log line went unnoticed.- if chain_changed(s) and not getattr(self, '_chain_note_shown', False):- self._chain_note_shown = True+ reason = stale_reason(s)+ if reason and not getattr(self, '_stale_shaders_shown', False):+ self._stale_shaders_shown = Truefrom PySide6.QtWidgets import QMessageBox- QMessageBox.information(self, 'NS Port Builder', self.m.t('msg.chainChanged'))+ box = QMessageBox(QMessageBox.Icon.Information, 'NS Port Builder', self.m.t(TITLE), parent=self)+ box.setInformativeText(self.m.t(TEXT[reason]))+ box.exec()def _on_finished(self, ok: bool, note: str) -> None:if ok:@@ -727,7 +730,7 @@ class MainWindow(QMainWindow):self.footer.setText('')self.footer.setStyleSheet('')self._failed = False- self._chain_note_shown = False+ self._stale_shaders_shown = Falseself.failure_box.hide()self.m.start_build()diff --git a/frontend-qt/tests/test_build_notes.py b/frontend-qt/tests/test_build_notes.pyindex 7418ac95..1bcb00ed 100644--- a/frontend-qt/tests/test_build_notes.py+++ b/frontend-qt/tests/test_build_notes.py@@ -1,4 +1,4 @@-"""Issue #320: the Qt popup for a new shader translator reads upstream's note, not patch 0006's.+"""Issue #320: the Qt popup reads upstream's stale-shaders note, for both of its reasons.python3 -m unittest frontend-qt/tests/test_build_notes.py -v"""@@ -17,23 +17,28 @@ SCRIPT = ROOT / 'engine/scripts/build_ipa_from_nsp.py'class BuildNotesTest(unittest.TestCase):- def test_a_new_translator_shows_the_popup(self):- self.assertTrue(bn.chain_changed('[NOTE] cached shader libraries cannot be reused (b-4e0dd2535996 -> b-b7cd656abd7c): '- 'the translation chain changed; 65 base libraries scheduled'))-- def test_other_lines_do_not(self):- for line in ("[NOTE] cached shader libraries cannot be reused (3f1c -> 9a20): the game profile's shader inputs changed",- '[NOTE] chain-changed: b-4e0dd2535996 -> b-b7cd656abd7c: the upstream update changed the shader translator',+ def test_each_reason_is_read(self):+ self.assertEqual(bn.stale_reason('[NOTE] cached shader libraries cannot be reused (b-4e0dd2535996 -> b-b7cd656abd7c): '+ 'the translation chain changed; 65 base libraries scheduled'), 'chain')+ self.assertEqual(bn.stale_reason("[NOTE] cached shader libraries cannot be reused (3f1c -> 9a20): "+ "the game profile's shader inputs changed"), 'inputs')++ def test_other_lines_are_not_a_note(self):+ for line in ('[NOTE] chain-changed: b-4e0dd2535996 -> b-b7cd656abd7c: the upstream update changed the shader translator','[5/9] shaders'):with self.subTest(line=line):- self.assertFalse(bn.chain_changed(line))+ self.assertIsNone(bn.stale_reason(line))++ def test_every_reason_has_a_text(self):+ self.assertEqual(set(bn.REASONS.values()), set(bn.TEXT))@unittest.skipUnless(SCRIPT.is_file(), 'engine/ is not synced (python3 tools/engine.py sync)')def test_the_engines_script_still_prints_the_note(self):"""An engine update that rewords the note fails here, instead of losing the popup."""- text = SCRIPT.read_text(encoding='utf-8')- self.assertIn(bn.STALE_SHADERS, text)- self.assertIn(bn.CHAIN_REASON, text)+ text = SCRIPT.read_text(encoding='utf-8').replace("\\'", "'") # the script writes profile\'s+ for words in (bn.STALE_SHADERS, *bn.REASONS):+ with self.subTest(words=words):+ self.assertIn(words, text)if __name__ == '__main__':diff --git a/frontend/Sources/NX2Apple/LauncherStores.swift b/frontend/Sources/NX2Apple/LauncherStores.swiftindex 7dca2dad..1471982b 100644--- a/frontend/Sources/NX2Apple/LauncherStores.swift+++ b/frontend/Sources/NX2Apple/LauncherStores.swift@@ -111,9 +111,10 @@ import NXModelguard p.runModal() == .OK else { return nil }return p.url}- build.showNotice = { text in+ build.showNotice = { title, text inlet a = NSAlert()- a.messageText = text+ a.messageText = title+ a.informativeText = texta.alertStyle = .informationala.addButton(withTitle: "OK")a.runModal()diff --git a/frontend/Sources/NXCore/BuildNotes.swift b/frontend/Sources/NXCore/BuildNotes.swiftdeleted file mode 100644index 18c168ef..00000000--- a/frontend/Sources/NXCore/BuildNotes.swift+++ /dev/null@@ -1,14 +0,0 @@-import Foundation--/// LNPANDY/NX2Apple#320: build-script notes the launcher shows as popups. The Qt window matches the same text (`nspb_qt/build_notes.py`).-package enum BuildNotes {- /// Printed by build_ipa_from_nsp.py before it rebuilds the shader libraries (with the `shaders_stale` event), then its reason.- package static let staleShaders = "[NOTE] cached shader libraries cannot be reused"- /// The reason the popup's text describes: a new shader translator.- package static let chainReason = "the translation chain changed"-- /// Whether text holds the note for a changed shader translator.- package static func chainChanged(_ text: String) -> Bool {- text.contains(staleShaders) && text.contains(chainReason)- }-}diff --git a/frontend/Sources/NXModel/BuildStore+Run.swift b/frontend/Sources/NXModel/BuildStore+Run.swiftindex 6f6aa8f7..67afe8fd 100644--- a/frontend/Sources/NXModel/BuildStore+Run.swift+++ b/frontend/Sources/NXModel/BuildStore+Run.swift@@ -16,7 +16,7 @@ extension BuildStore {shellDeviceChecked = falseif target != BuildTarget.mac, askAboutStaleFrameworks() { return } // StaleFrameworksPrompt.swift (#449)stopping = false- running = true; done = false; doneNote = ""; stages = []; log.clear(); chainNoteShown = false+ running = true; done = false; doneNote = ""; stages = []; log.clear(); staleShadersShown = falsefailure = nil; confirmingOverride = nillet override = takeOverrideFlag() // for this build only: the next one asks againinstalledOn = ""; installedAppPath = ""; exportedIPAPath = ""; send = .idlediff --git a/frontend/Sources/NXModel/BuildStore.swift b/frontend/Sources/NXModel/BuildStore.swiftindex 7ba17c54..bfcbaf4a 100644--- a/frontend/Sources/NXModel/BuildStore.swift+++ b/frontend/Sources/NXModel/BuildStore.swift@@ -82,7 +82,7 @@ func hop(_ body: @escaping @MainActor () -> Void) {didSet { defaults.set(outDir, forKey: Self.outputKey) }}@Published package var stages: [Stage] = []- var chainNoteShown = false // the shader-chain notice shows once per build+ var staleShadersShown = false // the stale-shaders notice shows once per build@Published package var running = false@Published package var staleFrameworks: [StaleFrameworks.Entry] = [] // the prompt of StaleFrameworksPrompt.swift (#449)// The shell folder (shellCachePath, shellRoot, shellRootProblem): BuildStore+ShellRoot.swift.@@ -147,8 +147,8 @@ func hop(_ body: @escaping @MainActor () -> Void) {package var chooseFolder: () -> String? = { nil }/// The save panel of "Save IPA" (title, the name offered): where to write, nil when they cancelled.package var chooseSaveLocation: (String, String) -> URL? = { _, _ in nil }- /// A notice the player must see (the shader chain changed): an alert.- package var showNotice: (String) -> Void = { _ in }+ /// A notice the player must see (the shaders are rebuilt): an alert with a title and a text.+ package var showNotice: (_ title: String, _ text: String) -> Void = { _, _ in }package var revealFolder: (URL) -> Void = { _ in }package var openApp: (URL) -> Void = { _ in }/// Whether the build folder is in a cloud folder. Tests stand in for the system's answer.@@ -262,7 +262,6 @@ func hop(_ body: @escaping @MainActor () -> Void) {return handleEvent(kind, event)}append(line + "\n")- noteChainChange(line)guard let s = BuildProgress.parseStage(line) else { return }if let i = stages.firstIndex(where: { $0.id == s.k }) {if !s.name.isEmpty { stages[i].name = Stage.localizedName(s.name, t) }@@ -275,15 +274,14 @@ func hop(_ body: @escaping @MainActor () -> Void) {}}- /// The script notes a shader-chain bump: the cached libraries cannot be reused and this- /// build recompiles them. An alert, not a log line — the report's question- /// ("why is it building shaders again, the artifacts are on the drive") came from exactly- /// this moment passing unnoticed. Once per build: the pipe delivers arbitrary chunks.- /// (A plain line, or the message of a `say` event in `--progress json`.)- package func noteChainChange(_ text: String) {- guard BuildNotes.chainChanged(text), !chainNoteShown else { return }- chainNoteShown = true- showNotice(t("msg.chainChanged"))+ /// The `shaders_stale` event: the cached shader libraries cannot be reused and this build rebuilds them, because the+ /// shader translator changed (`reason` "chain") or the game profile's shader inputs did ("inputs").+ /// An alert, not a log line: a report asked why the shaders were building again, because the log line went unnoticed.+ /// Once per build: the script sends the event once per shader step. A reason a newer script adds shows nothing: no text explains it.+ package func noteStaleShaders(reason: String) {+ guard let text = ["chain": "msg.shadersStale.chain", "inputs": "msg.shadersStale.inputs"][reason], !staleShadersShown else { return }+ staleShadersShown = true+ showNotice(t("msg.shadersStale.title"), t(text))}/// One event of `--progress json`: the stage list follows it, and the log gets a readable line (no count updates).@@ -316,7 +314,8 @@ func hop(_ body: @escaping @MainActor () -> Void) {case "say":let msg = e["msg"] as? String ?? ""append(msg + "\n")- noteChainChange(msg)+ case "shaders_stale":+ noteStaleShaders(reason: e["reason"] as? String ?? "")default: break}}diff --git a/frontend/Tests/NXCoreTests/BuildNotesTests.swift b/frontend/Tests/NXCoreTests/BuildNotesTests.swiftdeleted file mode 100644index 10594628..00000000--- a/frontend/Tests/NXCoreTests/BuildNotesTests.swift+++ /dev/null@@ -1,18 +0,0 @@-import XCTest-@testable import NXCore--/// LNPANDY/NX2Apple#320: the shader popup opens on upstream's note, not on patch 0006's. The Qt tests check the same lines.-final class BuildNotesTests: XCTestCase {- func testANewTranslatorShowsThePopup() {- XCTAssertTrue(BuildNotes.chainChanged("[NOTE] cached shader libraries cannot be reused (b-4e0dd2535996 -> b-b7cd656abd7c): "- + "the translation chain changed; 65 base libraries scheduled"))- }-- func testOtherLinesDoNot() {- for line in ["[NOTE] cached shader libraries cannot be reused (3f1c -> 9a20): the game profile's shader inputs changed",- "[NOTE] chain-changed: b-4e0dd2535996 -> b-b7cd656abd7c: the upstream update changed the shader translator",- "[5/9] shaders"] {- XCTAssertFalse(BuildNotes.chainChanged(line), line)- }- }-}diff --git a/frontend/Tests/NXModelTests/BuildStoreTests.swift b/frontend/Tests/NXModelTests/BuildStoreTests.swiftindex 112c41c0..040188a0 100644--- a/frontend/Tests/NXModelTests/BuildStoreTests.swift+++ b/frontend/Tests/NXModelTests/BuildStoreTests.swift@@ -196,14 +196,26 @@ import XCTestXCTAssertTrue(store.log.text.contains("plain line from a tool\n"), "what is not an event is log text")}- func testTheShaderChainNoticeShowsOncePerBuild() {+ func testTheStaleShadersNoticeShowsOncePerBuildForEachReason() {+ for (reason, text) in [("chain", "msg.shadersStale.chain"), ("inputs", "msg.shadersStale.inputs")] {+ let store = makeStore()+ var notices: [[String]] = []+ store.showNotice = { notices.append([$0, $1]) }+ let event = "{\"ev\":\"shaders_stale\",\"reason\":\"\(reason)\",\"old\":\"b-4e0dd2535996\",\"new\":\"b-b7cd656abd7c\",\"count\":65}\n"+ store.ingest(event)+ store.ingest(event) // the next shader step of the same build+ XCTAssertEqual(notices, [[store.t("msg.shadersStale.title"), store.t(text)]], reason)+ }+ }++ func testTheNoteLineAndAnUnknownReasonShowNoNotice() {let store = makeStore()var notices: [String] = []- store.showNotice = { notices.append($0) }- let note = "[NOTE] cached shader libraries cannot be reused (b-4e0dd2535996 -> b-b7cd656abd7c): the translation chain changed"- store.ingest("{\"ev\":\"say\",\"msg\":\"\(note)\"}\n")- store.ingest(note + " again\n")- XCTAssertEqual(notices, [store.t("msg.chainChanged")])+ store.showNotice = { title, _ in notices.append(title) }+ store.ingest("{\"ev\":\"say\",\"msg\":\"[NOTE] cached shader libraries cannot be reused (a -> b): the translation chain changed\"}\n")+ XCTAssertEqual(notices, [], "the event shows the notice, the note that follows it is a log line")+ store.ingest("{\"ev\":\"shaders_stale\",\"reason\":\"newer\",\"old\":\"a\",\"new\":\"b\",\"count\":1}\n")+ XCTAssertEqual(notices, [], "no text explains a reason a newer script adds")}// MARK: The failurediff --git a/frontend/l10n/de.json b/frontend/l10n/de.jsonindex f14be72e..a46f0b2e 100644--- a/frontend/l10n/de.json+++ b/frontend/l10n/de.json@@ -712,7 +712,6 @@"msg.bcOn": "Modus für ältere Geräte: BC-Texturen werden auf der CPU dekodiert","msg.buildFailed": "Build fehlgeschlagen (Exit-Code %d). Siehe das Protokoll unten","msg.buildFailedReason": "Build fehlgeschlagen. Siehe das Protokoll unten. Letzte Zeile: %@",- "msg.chainChanged": "Ein Upstream-Update hat den Shader-Übersetzer geändert, daher lassen sich bereits gebaute Shader-Bibliotheken nicht wiederverwenden. Dieser Build erstellt sie mit dem neuen neu (einmal pro Update, spätere Builds verwenden sie wie zuvor wieder).","msg.done": "Fertig","msg.exitCode": "Exit-Code %d","msg.installingNsz": "Der gewählte Dump ist NSZ / XCZ. nsz wird in das Build-Python installiert …",@@ -725,6 +724,9 @@"msg.repoInvalid": "Ungültiger Repository-Pfad: %@. Verweise oben mit „Repository wählen …“ auf deinen Klon","msg.repoInvalidEmpty": "Ungültiger Repository-Pfad: keiner gewählt. Nutze oben „Repository wählen …“","msg.running": "Läuft: %@",+ "msg.shadersStale.chain": "Ein Upstream-Update hat den Shader-Übersetzer geändert, daher lassen sich bereits gebaute Shader-Bibliotheken nicht wiederverwenden. Dieser Build erstellt sie einmal neu, spätere Builds verwenden sie wie zuvor wieder.",+ "msg.shadersStale.inputs": "Das Profil dieses Spiels hat seine Shader-Einstellungen geändert, daher lassen sich bereits gebaute Shader-Bibliotheken nicht wiederverwenden. Dieser Build erstellt sie einmal neu, spätere Builds verwenden sie wie zuvor wieder.",+ "msg.shadersStale.title": "Shader werden neu gebaut","msg.stagedFromSharedFolder": "Der Ordner enthält weitere Spiele: Es wird aus einer temporären Kopie dieses Spiels gebaut (%@)","msg.stagingFailed": "Im Staging-Ordner konnten keine Links erstellt werden (Dateien auf verschiedenen Volumes?)","msg.stopped": "Gestoppt",diff --git a/frontend/l10n/en.json b/frontend/l10n/en.jsonindex 5eb19a39..a16fa022 100644--- a/frontend/l10n/en.json+++ b/frontend/l10n/en.json@@ -836,7 +836,6 @@"msg.bcOn": "Older-device mode: BC textures will be decoded on the CPU","msg.buildFailed": "Build failed (exit code %d) — see the log below","msg.buildFailedReason": "Build failed — see the log below. Last line: %@",- "msg.chainChanged": "An upstream update changed the shader translator, so previously built shader libraries cannot be reused, so this build rebuilds them with the new one (once per update, and later builds reuse as before).","msg.done": "Done","msg.exitCode": "exit code %d","msg.installingNsz": "The selected dump is NSZ / XCZ — installing nsz into the build's Python…",@@ -849,6 +848,9 @@"msg.repoInvalid": "Invalid repository path: %@ — use Choose repository… above to point at your clone","msg.repoInvalidEmpty": "Invalid repository path: none chosen — use Choose repository… above","msg.running": "Running: %@",+ "msg.shadersStale.chain": "An upstream update changed the shader translator, so previously built shader libraries cannot be reused. This build rebuilds them once, and later builds reuse them as before.",+ "msg.shadersStale.inputs": "This game's profile changed its shader settings, so previously built shader libraries cannot be reused. This build rebuilds them once, and later builds reuse them as before.",+ "msg.shadersStale.title": "Rebuilding the shaders","msg.stagedFromSharedFolder": "The folder holds other games: building from a temporary copy of this one (%@)","msg.stagingFailed": "Could not create links in the staging folder (files on different volumes?)","msg.stopped": "Stopped",diff --git a/frontend/l10n/fr.json b/frontend/l10n/fr.jsonindex 0cdfb40e..270ce7aa 100644--- a/frontend/l10n/fr.json+++ b/frontend/l10n/fr.json@@ -711,7 +711,6 @@"msg.bcOn": "Mode anciens appareils : les textures BC seront décodées sur le CPU","msg.buildFailed": "Échec de la compilation (code de sortie %d) — voir le journal ci-dessous","msg.buildFailedReason": "Échec de la compilation — voir le journal ci-dessous. Dernière ligne : %@",- "msg.chainChanged": "Une mise à jour en amont a modifié le traducteur de shaders : les bibliothèques de shaders déjà compilées ne peuvent pas être réutilisées, cette compilation les reconstruit donc avec le nouveau (une fois par mise à jour ; les compilations suivantes les réutilisent comme avant).","msg.done": "Terminé","msg.exitCode": "code de sortie %d","msg.installingNsz": "Le dump sélectionné est en NSZ / XCZ — installation de nsz dans le Python de compilation…",@@ -724,6 +723,9 @@"msg.repoInvalid": "Chemin de dépôt invalide : %@ — utilisez Choisir le dépôt… ci-dessus pour pointer vers votre clone","msg.repoInvalidEmpty": "Chemin de dépôt invalide : aucun choisi — utilisez Choisir le dépôt… ci-dessus","msg.running": "Exécution : %@",+ "msg.shadersStale.chain": "Une mise à jour en amont a changé le traducteur de shaders, les bibliothèques de shaders déjà compilées ne peuvent donc pas être réutilisées. Cette compilation les reconstruit une fois, les suivantes les réutilisent comme avant.",+ "msg.shadersStale.inputs": "Le profil de ce jeu a changé ses réglages de shaders, les bibliothèques de shaders déjà compilées ne peuvent donc pas être réutilisées. Cette compilation les reconstruit une fois, les suivantes les réutilisent comme avant.",+ "msg.shadersStale.title": "Reconstruction des shaders","msg.stagedFromSharedFolder": "Le dossier contient d’autres jeux : compilation à partir d’une copie temporaire de celui-ci (%@)","msg.stagingFailed": "Impossible de créer des liens dans le dossier de préparation (fichiers sur des volumes différents ?)","msg.stopped": "Arrêté",diff --git a/frontend/l10n/it.json b/frontend/l10n/it.jsonindex 843d252d..ea406566 100644--- a/frontend/l10n/it.json+++ b/frontend/l10n/it.json@@ -711,7 +711,6 @@"msg.bcOn": "Modalità per dispositivi meno recenti: le texture BC verranno decodificate sulla CPU","msg.buildFailed": "Build non riuscita (codice di uscita %d): vedi il log qui sotto","msg.buildFailedReason": "Build non riuscita: vedi il log qui sotto. Ultima riga: %@",- "msg.chainChanged": "Un aggiornamento upstream ha cambiato il traduttore di shader, quindi le librerie di shader compilate in precedenza non si possono riutilizzare e questa build le ricrea con quello nuovo (una volta per aggiornamento, poi le build le riutilizzano come prima).","msg.done": "Fatto","msg.exitCode": "codice di uscita %d","msg.installingNsz": "Il dump selezionato è NSZ / XCZ: installazione di nsz nel Python della build…",@@ -724,6 +723,9 @@"msg.repoInvalid": "Percorso del repository non valido: %@. Usa Scegli repository… qui sopra per indicare il tuo clone","msg.repoInvalidEmpty": "Percorso del repository non valido: nessuno scelto. Usa Scegli repository… qui sopra","msg.running": "In esecuzione: %@",+ "msg.shadersStale.chain": "Un aggiornamento upstream ha cambiato il traduttore di shader, quindi le librerie di shader compilate in precedenza non si possono riutilizzare. Questa build le ricrea una volta, poi le build successive le riutilizzano come prima.",+ "msg.shadersStale.inputs": "Il profilo di questo gioco ha cambiato le impostazioni degli shader, quindi le librerie di shader compilate in precedenza non si possono riutilizzare. Questa build le ricrea una volta, poi le build successive le riutilizzano come prima.",+ "msg.shadersStale.title": "Ricostruzione degli shader","msg.stagedFromSharedFolder": "La cartella contiene altri giochi: la build parte da una copia temporanea di questo (%@)","msg.stagingFailed": "Impossibile creare i collegamenti nella cartella di preparazione (file su volumi diversi?)","msg.stopped": "Interrotta",diff --git a/frontend/l10n/sv.json b/frontend/l10n/sv.jsonindex bbc615a2..62439a8c 100644--- a/frontend/l10n/sv.json+++ b/frontend/l10n/sv.json@@ -551,7 +551,6 @@"msg.bcOn": "Läget för äldre enheter: BC-texturer avkodas på processorn","msg.buildFailed": "Bygget misslyckades med slutkod %d. Se loggen nedan.","msg.buildFailedReason": "Bygget misslyckades. Se loggen nedan. Sista raden: %@",- "msg.chainChanged": "Uppströmskoden uppdaterade kedjan för shaderöversättning. Tidigare shaderbibliotek kan inte återanvändas. Det här bygget återskapar dem med den nya översättaren, vilket bara sker en gång per version.","msg.done": "Klart","msg.exitCode": "slutkod %d","msg.installingNsz": "Det valda filformatet är komprimerat NSZ/XCZ. Installerar nsz i Python-miljön som används för bygget …",@@ -564,6 +563,9 @@"msg.repoInvalid": "Ogiltig förrådssökväg: %@. Använd ”Välj förråd …” ovan och välj projektets klon.","msg.repoInvalidEmpty": "Ogiltig förrådssökväg: inget valt. Använd ”Välj förråd …” ovan och välj projektets klon.","msg.running": "Kör: %@",+ "msg.shadersStale.chain": "En uppdatering uppströms har bytt shaderöversättare, så tidigare byggda shaderbibliotek kan inte återanvändas. Det här bygget bygger om dem en gång, och senare byggen återanvänder dem som förut.",+ "msg.shadersStale.inputs": "Spelets profil har ändrat sina shaderinställningar, så tidigare byggda shaderbibliotek kan inte återanvändas. Det här bygget bygger om dem en gång, och senare byggen återanvänder dem som förut.",+ "msg.shadersStale.title": "Shaderna byggs om","msg.stagedFromSharedFolder": "Mappen innehåller andra spel. Bygger från en tillfällig kopia av det här (%@)","msg.stagingFailed": "Kunde inte skapa en länk i mellanlagringsmappen. Ligger filerna på olika diskar?","msg.stopped": "Stoppad",diff --git a/frontend/l10n/zh.json b/frontend/l10n/zh.jsonindex e2f6c1d4..a131a790 100644--- a/frontend/l10n/zh.json+++ b/frontend/l10n/zh.json@@ -837,7 +837,6 @@"msg.bcOn": "兼容老设备:BC 纹理将在 CPU 上解压","msg.buildFailed": "构建失败(退出码 %d),见下方日志","msg.buildFailedReason": "构建失败,见下方日志。最后一行:%@",- "msg.chainChanged": "上游代码更新了 shader 翻译链,之前构建的 shader 库无法复用——本次构建用新翻译器重建(每个版本一次,之后的构建恢复复用)。","msg.done": "完成","msg.exitCode": "退出码 %d","msg.installingNsz": "选中的是 NSZ / XCZ 压缩格式,正在给构建用的 Python 安装 nsz…",@@ -850,6 +849,9 @@"msg.repoInvalid": "仓库路径无效:%@——用上方的「选择仓库…」指向本项目的 clone","msg.repoInvalidEmpty": "仓库路径无效:未选择——用上方的「选择仓库…」指向本项目的 clone","msg.running": "运行:%@",+ "msg.shadersStale.chain": "上游更新更换了 shader 翻译器,之前构建的 shader 库无法复用。本次构建会重建一次,之后的构建照常复用。",+ "msg.shadersStale.inputs": "这个游戏的配置更改了 shader 设置,之前构建的 shader 库无法复用。本次构建会重建一次,之后的构建照常复用。",+ "msg.shadersStale.title": "正在重建 shader 库","msg.stagedFromSharedFolder": "文件夹里还有其他游戏:只把选中的这个游戏(%@)临时复制出去构建","msg.stagingFailed": "无法在暂存文件夹里建立链接(文件在不同磁盘?)","msg.stopped": "已停止",