Skip to content

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

Merge djdev0010/shaders-stale-qt (#470) into main

v0lumehi26b9ddd5bfe9
diff --cc frontend-qt/nspb_qt/ui.py
index e9de6db7,0c0d1e43..190546fd
--- a/frontend-qt/nspb_qt/ui.py
+++ b/frontend-qt/nspb_qt/ui.py
@@@ -14,8 -14,8 +14,9 @@@ from PySide6.QtWidgets import
QProgressBar, QPushButton, QScrollArea, QSizePolicy, QTextEdit, QVBoxLayout, QWidget,
)
+from . import inputs
from . import platform_util as pu
+ from .build_notes import TEXT, TITLE, stale_reason
from .model import DepState, Model
from .style import CARD_EDGE, GREEN, MUTED, ORANGE, RED
diff --cc frontend/Sources/NXModel/BuildStore+Run.swift
index 7dc8de31,67afe8fd..752eee92
--- a/frontend/Sources/NXModel/BuildStore+Run.swift
+++ b/frontend/Sources/NXModel/BuildStore+Run.swift
@@@ -14,9 -14,9 +14,9 @@@ extension BuildStore
return
}
shellDeviceChecked = false
- if target != BuildTarget.mac, askAboutStaleFrameworks() { return } // StaleFrameworksPrompt.swift (#449)
+ if target != BuildTarget.mac, !exportsOneGame, 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 = false
failure = nil; confirmingOverride = nil
let override = takeOverrideFlag() // for this build only: the next one asks again
installedOn = ""; installedAppPath = ""; exportedIPAPath = ""; send = .idle
diff --cc frontend/Sources/NXModel/BuildStore.swift
index 5c066c24,bfcbaf4a..3b741293
--- a/frontend/Sources/NXModel/BuildStore.swift
+++ b/frontend/Sources/NXModel/BuildStore.swift
@@@ -162,11 -147,9 +162,11 @@@ func hop(_ body: @escaping @MainActor (
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 }
+ /// A Finder window with this file or folder selected (`activateFileViewerSelecting`).
+ package var revealItem: (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.
package var cloudFolderCheck: (String) -> Bool = { CloudFolder.contains($0) }