Skip to content

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

The Files-app pick compiles: ObjC BOOL* is ObjCBool, not Bool

LNPANDY29e8e41a8050
diff --git a/dm/ios/Sources/Launcher.swift b/dm/ios/Sources/Launcher.swift
index d5e3a961..98170f75 100644
--- a/dm/ios/Sources/Launcher.swift
+++ b/dm/ios/Sources/Launcher.swift
@@ -109,9 +109,12 @@ private struct GameDataSection: View {
}
private func refresh() {
- var stale = false
+ // ObjC BOOL* is ObjCBool, not Bool: the bookmark header takes an indirect flag for
+ // "the bookmark exists but does not resolve under this signature", which is the one
+ // state worth telling the player about.
+ var stale: ObjCBool = false
picked = dm_picked_data_path(&stale) ?? ""
- if stale && picked.isEmpty {
+ if stale.boolValue && picked.isEmpty {
note = "The location you picked before is no longer readable (the app was signed differently). Please choose it again."
}
}