Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.
Swift apple-silicond3dmetaldxmtdxvkfexgame-porting-toolkitgamingmac-gamingmacosmetalmoltenvksteamswiftuivkd3d-protonwhisky-alternativewindows-gameswinewine-wrapper
Local-network usage string; tile tooltip is one sentence
Gauthier Piarrette73af2366bb1d
diff --git a/Scripts/make-app.sh b/Scripts/make-app.shindex 55c7998..2c517b0 100755--- a/Scripts/make-app.sh+++ b/Scripts/make-app.sh@@ -67,6 +67,7 @@ cat > "$APP/Contents/Info.plist" <<PLIST<key>CFBundleURLName</key><string>Highball play link</string><key>CFBundleURLSchemes</key><array><string>highball</string></array></dict></array>+ <key>NSLocalNetworkUsageDescription</key><string>Steam and some games look for other players and devices on your network. macOS asks the first time one does.</string><key>NSMicrophoneUsageDescription</key><string>Windows games and apps running in a bottle need the microphone for voice chat and recording. macOS asks the first time one uses it.</string></dict></plist>PLISTdiff --git a/Sources/HighballApp/LibraryView.swift b/Sources/HighballApp/LibraryView.swiftindex 98b8e49..1c7d7b3 100644--- a/Sources/HighballApp/LibraryView.swift+++ b/Sources/HighballApp/LibraryView.swift@@ -212,7 +212,7 @@ struct LibraryTile: View {.buttonStyle(.plain).animation(.spring(duration: 0.2), value: hovering).onHover { hovering = $0 }- .help(entry?.notes ?? item.title)+ .help(Self.tooltip(entry?.notes) ?? item.title).contextMenu {if let appid = item.steamAppID, let running = state.session(forAppID: appid) {Button(L("Stop")) { state.stopSession(running) }@@ -311,3 +311,13 @@ struct CoverArt: View {}}}++extension LibraryTile {+ /// A tooltip is a glance, not the whole entry: the first sentence of the notes, capped.+ static func tooltip(_ notes: String?) -> String? {+ guard let notes, !notes.isEmpty else { return nil }+ let first = notes.split(separator: ".", maxSplits: 1, omittingEmptySubsequences: true).first.map(String.init) ?? notes+ let sentence = first.trimmingCharacters(in: .whitespaces) + "."+ return sentence.count <= 160 ? sentence : String(sentence.prefix(157)).trimmingCharacters(in: .whitespaces) + "…"+ }+}