Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit
Swift apple-silicond3dmetaldxmtdxvkgame-porting-toolkitgptkmac-gamingmacosmetalfxrosetta-2steamsteam-playwinewinecx
feat(app): a Guide pane that explains every Bridgeplay setting in Steam
raymondchinsdca427bc2c91
diff --git a/app/Sources/BridgeplayApp/App.swift b/app/Sources/BridgeplayApp/App.swiftindex 943ca36..87fad7c 100644--- a/app/Sources/BridgeplayApp/App.swift+++ b/app/Sources/BridgeplayApp/App.swift@@ -73,19 +73,21 @@ struct BridgeplayApp: App {.keyboardShortcut("2", modifiers: .command)Button("Prefix Backups") { pane = .backups }.keyboardShortcut("3", modifiers: .command)+ Button("Guide") { pane = .guide }+ .keyboardShortcut("4", modifiers: .command)Divider()Button("Refresh") {Task {switch pane {- case .status: await status.refresh()+ case .status, .guide: await status.refresh()case .prefixes, .backups: await prefixes.load()}}}.keyboardShortcut("r", modifiers: .command)- .disabled(pane == .status ? !status.isIdle : prefixes.isLoading)+ .disabled(pane == .status || pane == .guide ? !status.isIdle : prefixes.isLoading)Divider()}diff --git a/app/Sources/BridgeplayApp/Resources/Localization/Localizable.xcstrings b/app/Sources/BridgeplayApp/Resources/Localization/Localizable.xcstringsindex 3ee7bdf..a8f0178 100644--- a/app/Sources/BridgeplayApp/Resources/Localization/Localizable.xcstrings+++ b/app/Sources/BridgeplayApp/Resources/Localization/Localizable.xcstrings@@ -908,6 +908,22 @@}}},+ "A faster way for the game's threads to wait on each other. Leave it on unless a game hangs." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Un modo più veloce per far attendere i thread del gioco tra loro. Lascialo attivo, a meno che un gioco si blocchi."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "让游戏线程更快地相互等待。除非游戏卡住,否则保持开启。"+ }+ }+ }+ },"A game or Wine tool is running on build %@. Quit it before updating Bridgeplay." : {"localizations" : {"it" : {@@ -1180,6 +1196,22 @@}}},+ "Add to" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Aggiungi a"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "添加到"+ }+ }+ }+ },"Adding the certificate…" : {"localizations" : {"it" : {@@ -1196,6 +1228,38 @@}}},+ "Adds generated frames between the game's own: 2x, 3x, or Adaptive, which fills up to your display's refresh rate. Smoother motion, a little more input lag. Works with any game, native Mac games included." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Aggiunge fotogrammi generati tra quelli del gioco: 2x, 3x o Adattivo, che arriva fino alla frequenza di aggiornamento dello schermo. Movimento più fluido, un po' più di input lag. Funziona con qualsiasi gioco, anche nativo per Mac."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "在游戏自身的帧之间插入生成帧:2x、3x 或自适应(补足到显示器刷新率)。画面更流畅,输入延迟略增。适用于任何游戏,包括原生 Mac 游戏。"+ }+ }+ }+ },+ "Advertise AVX2 to Rosetta" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Segnala AVX2 a Rosetta"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "向 Rosetta 声明 AVX2 支持"+ }+ }+ }+ },"After a Bridgeplay update the switch can look on but no longer work. Turn it off and on again, or remove Bridgeplay from the list with − and add it back with +." : {"localizations" : {"it" : {@@ -1452,6 +1516,22 @@}}},+ "Apple's performance overlay: frame rate, frame time and GPU use." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "L'overlay delle prestazioni di Apple: frame rate, tempo di frame e uso della GPU."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Apple 的性能叠层:帧率、帧时间和 GPU 占用。"+ }+ }+ }+ },"Apple's translator for Windows games. Asks for your Mac password." : {"localizations" : {"it" : {@@ -1548,6 +1628,22 @@}}},+ "Automatic" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Automatico"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "自动"+ }+ }+ }+ },"Back" : {"localizations" : {"it" : {@@ -1740,6 +1836,22 @@}}},+ "Balanced" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bilanciato"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "均衡"+ }+ }+ }+ },"Block Client Updates" : {"localizations" : {"it" : {@@ -2095,6 +2207,22 @@}}},+ "Bridgeplay lives in Steam" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bridgeplay vive in Steam"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bridgeplay 就在 Steam 中"+ }+ }+ }+ },"Bridgeplay needs the App Management permission. Turn on Bridgeplay in System Settings › Privacy & Security › App Management. After a Bridgeplay update the switch can look on but no longer work: turn it off and on again." : {"localizations" : {"it" : {@@ -2127,6 +2255,22 @@}}},+ "Bridgeplay sets the game up and the game prepares its graphics, which can show a black screen for a few minutes. Later launches are quick." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bridgeplay configura il gioco e il gioco prepara la grafica: per qualche minuto potresti vedere una schermata nera. I prossimi avvii sono rapidi."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bridgeplay 会配置游戏,游戏则会准备图形资源,期间可能出现几分钟的黑屏。之后再启动就很快了。"+ }+ }+ }+ },"Bridgeplay successfully installed." : {"localizations" : {"it" : {@@ -2239,6 +2383,38 @@}}},+ "Built-in optical flow" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Flusso ottico integrato"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "内置光流"+ }+ }+ }+ },+ "Built-in optical flow follows the mode above. MetalFX uses Apple's frame interpolation and makes one frame per pair." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Il flusso ottico integrato segue la modalità qui sopra. MetalFX usa l'interpolazione di Apple e genera un fotogramma per ogni coppia."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "内置光流遵循上方的模式。MetalFX 使用 Apple 的插帧,每对帧生成一帧。"+ }+ }+ }+ },"Calculating…" : {"localizations" : {"it" : {@@ -2415,6 +2591,22 @@}}},+ "Choose Compatibility. Bridgeplay's settings follow Steam Play on that page." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Scegli Compatibilità. Le impostazioni di Bridgeplay seguono Steam Play in quella pagina."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "选择“兼容性”。Bridgeplay 的设置就在该页面 Steam Play 下方。"+ }+ }+ }+ },"Choose a Windows program to run in %@." : {"localizations" : {"it" : {@@ -2527,6 +2719,22 @@}}},+ "Compatibility" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Compatibilità"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "兼容性"+ }+ }+ }+ },"Compatibility Tool" : {"localizations" : {"it" : {@@ -2687,6 +2895,38 @@}}},+ "Controller" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Controller"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "手柄"+ }+ }+ }+ },+ "Controller layer" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Livello controller"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "控制器层"+ }+ }+ }+ },"Controller permission" : {"localizations" : {"it" : {@@ -3010,6 +3250,22 @@}}},+ "Customization" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Personalizzazione"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "自定义"+ }+ }+ }+ },"Delete" : {"localizations" : {"it" : {@@ -3362,6 +3618,38 @@}}},+ "Disable hidraw" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Disable hidraw"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "停用 hidraw"+ }+ }+ }+ },+ "Do not run. Their anti-cheat needs a Windows driver." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non funzionano. Il loro anti-cheat richiede un driver di Windows."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "无法运行。其反作弊程序需要 Windows 驱动程序。"+ }+ }+ }+ },"Done" : {"localizations" : {"it" : {@@ -3522,87 +3810,183 @@}}},- "Engines" : {+ "Drawn the way Steam shows them. Changes apply the next time the game starts. Not sure? Leave a setting as it is: Bridgeplay picks what works for each game." : {"localizations" : {"it" : {"stringUnit" : {"state" : "translated",- "value" : "Motori"+ "value" : "Mostrate come le mostra Steam. Le modifiche si applicano al prossimo avvio del gioco. Non sei sicuro? Lascia l'impostazione com'è: Bridgeplay sceglie ciò che funziona per ogni gioco."}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "引擎"+ "value" : "按 Steam 的显示方式呈现。更改将在下次启动游戏时生效。不确定?保持原样即可:Bridgeplay 会为每个游戏选择合适的设置。"}}}},- "Enter at least one verb, like vcrun2022." : {+ "Draws at your display's full Retina resolution instead of half. Sharper, heavier on the GPU." : {"localizations" : {"it" : {"stringUnit" : {"state" : "translated",- "value" : "Inserisci almeno un verbo, ad esempio vcrun2022."+ "value" : "Disegna alla piena risoluzione Retina dello schermo invece che a metà. Più nitido, più pesante per la GPU."}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "请至少输入一个组件,例如 vcrun2022。"+ "value" : "以显示器完整的 Retina 分辨率绘制,而不是一半。更清晰,GPU 负担更重。"}}}},- "Enter the Winetricks verbs to install in %@, separated by spaces." : {+ "DualSense, Xbox, GameSir and other pads work without a mapping screen. The first time a game uses one, allow Steam in Input Monitoring." : {"localizations" : {"it" : {"stringUnit" : {"state" : "translated",- "value" : "Inserisci i verbi di Winetricks da installare in %@, separati da spazi."+ "value" : "DualSense, Xbox, GameSir e altri pad funzionano senza una schermata di mappatura. La prima volta che un gioco ne usa uno, consenti Steam in Monitoraggio input."}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "输入要安装到“%@”中的 Winetricks 组件,用空格分隔。"+ "value" : "DualSense、Xbox、GameSir 等手柄无需映射界面即可使用。游戏首次使用手柄时,请在“输入监控”中允许 Steam。"}}}},- "Extracting" : {+ "Engine" : {"localizations" : {"it" : {"stringUnit" : {"state" : "translated",- "value" : "Estrazione"+ "value" : "Motore"}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "正在解压"+ "value" : "引擎"}}}},- "Failed" : {+ "Engines" : {"localizations" : {"it" : {"stringUnit" : {"state" : "translated",- "value" : "Non riuscito"+ "value" : "Motori"}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "操作失败"+ "value" : "引擎"}}}},- "Fetch Valve Binaries" : {+ "Enter at least one verb, like vcrun2022." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Inserisci almeno un verbo, ad esempio vcrun2022."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "请至少输入一个组件,例如 vcrun2022。"+ }+ }+ }+ },+ "Enter the Winetricks verbs to install in %@, separated by spaces." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Inserisci i verbi di Winetricks da installare in %@, separati da spazi."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "输入要安装到“%@”中的 Winetricks 组件,用空格分隔。"+ }+ }+ }+ },+ "Every setting on the Compatibility page" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Tutte le impostazioni della pagina Compatibilità"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "兼容性页面上的所有设置"+ }+ }+ }+ },+ "Extracting" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Estrazione"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "正在解压"+ }+ }+ }+ },+ "Failed" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non riuscito"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "操作失败"+ }+ }+ }+ },+ "Fast-motion fallback (skips frames that would smear)" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ripiego per movimento veloce (salta i fotogrammi che sfocherebbero)"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "快速运动回退(跳过会产生拖影的帧)"+ }+ }+ }+ },+ "Fetch Valve Binaries" : {"localizations" : {"it" : {"stringUnit" : {@@ -3682,6 +4066,22 @@}}},+ "Frame Generation (Experimental. Adds input lag)" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Generazione fotogrammi (sperimentale. Aggiunge input lag)"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "帧生成(实验性。会增加输入延迟)"+ }+ }+ }+ },"Free space" : {"localizations" : {"it" : {@@ -3730,6 +4130,102 @@}}},+ "Game Recording" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Registrazione di gioco"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "游戏录制"+ }+ }+ }+ },+ "Game Versions & Betas" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Versioni e beta del gioco"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "游戏版本与测试版"+ }+ }+ }+ },+ "Games that offer Vulkan as a rendering option run it through MoltenVK, without DLSS. Prefer DirectX 11 or 12." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "I giochi che offrono Vulkan come opzione di rendering lo eseguono tramite MoltenVK, senza DLSS. Meglio scegliere DirectX 11 o 12."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "提供 Vulkan 渲染选项的游戏会通过 MoltenVK 运行,且不支持 DLSS。建议选择 DirectX 11 或 12。"+ }+ }+ }+ },+ "Games with kernel anti-cheat" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Giochi con anti-cheat a livello kernel"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "使用内核级反作弊的游戏"+ }+ }+ }+ },+ "General" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Generale"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "常规"+ }+ }+ }+ },+ "Good to know" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Da sapere"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "须知"+ }+ }+ }+ },"Graphics" : {"localizations" : {"it" : {@@ -3746,6 +4242,86 @@}}},+ "Guide" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Guida"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "指南"+ }+ }+ }+ },+ "Hides raw HID devices from the game, so pads only show up through SDL. Try it if a game sees one controller twice or ignores yours." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nasconde al gioco i dispositivi HID grezzi, così i pad appaiono solo tramite SDL. Provalo se un gioco vede un controller due volte o ignora il tuo."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "对游戏隐藏原始 HID 设备,手柄只会通过 SDL 显示。如果游戏把同一个手柄识别成两个,或忽略你的手柄,可以试试。"+ }+ }+ }+ },+ "High Resolution" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Alta risoluzione"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "高分辨率"+ }+ }+ }+ },+ "How finely motion is tracked between frames. Performance is the lightest, Quality the most precise, Balanced in between." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Quanto è fine il tracciamento del movimento tra i fotogrammi. Prestazioni è il più leggero, Qualità il più preciso, Bilanciato sta nel mezzo."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "帧之间运动追踪的精细程度。“性能”最轻量,“画质”最精确,“均衡”介于两者之间。"+ }+ }+ }+ },+ "How the game's DirectX reaches your GPU. Automatic picks per game. D3DMetal (Apple's Game Porting Toolkit) runs DirectX 11 and 12 and is the default. DXMT runs DirectX 10 and 11 directly on Metal. DXVK runs DirectX 9 to 11 through Vulkan. WineD3D is Wine's own translation, for very old games." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Come il DirectX del gioco raggiunge la tua GPU. Automatico sceglie per ogni gioco. D3DMetal (il Game Porting Toolkit di Apple) esegue DirectX 11 e 12 ed è l'opzione predefinita. DXMT esegue DirectX 10 e 11 direttamente su Metal. DXVK esegue DirectX da 9 a 11 tramite Vulkan. WineD3D è la traduzione di Wine, per i giochi molto vecchi."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "游戏的 DirectX 如何到达你的 GPU。“自动”会按游戏选择。D3DMetal(Apple 的 Game Porting Toolkit)运行 DirectX 11 和 12,为默认选项。DXMT 直接在 Metal 上运行 DirectX 10 和 11。DXVK 通过 Vulkan 运行 DirectX 9 到 11。WineD3D 是 Wine 自带的转换层,适用于很老的游戏。"+ }+ }+ }+ },"If Bridgeplay is installed there, it will stay installed. Continue anyway?" : {"localizations" : {"it" : {@@ -3794,6 +4370,22 @@}}},+ "In your Steam library, right-click the game and choose Properties…" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nella libreria di Steam, fai clic con il tasto destro sul gioco e scegli Proprietà…"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "在 Steam 游戏库中,右键点击游戏,然后选择“属性…”。"+ }+ }+ }+ },"Install" : {"localizations" : {"it" : {@@ -3954,6 +4546,22 @@}}},+ "Installed Files" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "File installati"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "已安装文件"+ }+ }+ }+ },"Installed content could not be verified. Refresh the Status view for the files that still need attention." : {"localizations" : {"it" : {@@ -4210,6 +4818,38 @@}}},+ "Let games read controllers directly (Recommended on Mac. Turn off only for Steam Input remapping)" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Lascia che i giochi leggano direttamente i controller (consigliato su Mac, disattiva solo per la rimappatura di Steam Input)"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "允许游戏直接读取控制器(Mac 上推荐,仅在需要 Steam Input 按键映射时关闭)"+ }+ }+ }+ },+ "Lets the game offer NVIDIA DLSS. Apple's MetalFX does the upscaling, and DLSS Frame Generation runs on MetalFX too. Turn DLSS on in the game's own settings as well." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Permette al gioco di offrire NVIDIA DLSS. L'upscaling è fatto da MetalFX di Apple, e anche la Frame Generation DLSS gira su MetalFX. Attiva DLSS anche nelle impostazioni del gioco."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "让游戏提供 NVIDIA DLSS 选项。放大由 Apple 的 MetalFX 完成,DLSS 帧生成也基于 MetalFX 运行。同时请在游戏自己的设置中开启 DLSS。"+ }+ }+ }+ },"Library" : {"localizations" : {"it" : {@@ -4402,6 +5042,54 @@}}},+ "Manage" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Gestisci"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "管理"+ }+ }+ }+ },+ "Metal HUD" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Metal HUD"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Metal 性能监视器"+ }+ }+ }+ },+ "MetalFX Upscaling (Samples from the resolution the game is set to)" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Upscaling MetalFX (ingrandisce l'immagine dalla risoluzione impostata nel gioco)"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "MetalFX 超分辨率(以游戏设置的分辨率为采样来源)"+ }+ }+ }+ },"Missing components: %@. Run make app-payload and build the app again." : {"localizations" : {"it" : {@@ -4450,6 +5138,22 @@}}},+ "Mode" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Modalità"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "模式"+ }+ }+ }+ },"More" : {"localizations" : {"it" : {@@ -4514,6 +5218,22 @@}}},+ "Native Mac games" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Giochi nativi per Mac"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "原生 Mac 游戏"+ }+ }+ }+ },"Needs rebuilding" : {"localizations" : {"it" : {@@ -4674,114 +5394,162 @@}}},- "None found. Download the free WineHQ or WineCX engine, or use CrossOver (%@)." : {+ "None found. Download the free WineHQ or WineCX engine, or use CrossOver (%@)." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nessuno trovato. Scarica il motore gratuito WineHQ o WineCX, oppure usa CrossOver (%@)."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "未找到。请下载免费的 WineHQ 或 WineCX 引擎,或使用 CrossOver(%@)。"+ }+ }+ }+ },+ "Not Now" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non ora"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "暂不"+ }+ }+ }+ },+ "Not installed." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non installato."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "尚未安装。"+ }+ }+ }+ },+ "Not set up yet" : {"localizations" : {"it" : {"stringUnit" : {"state" : "translated",- "value" : "Nessuno trovato. Scarica il motore gratuito WineHQ o WineCX, oppure usa CrossOver (%@)."+ "value" : "Non ancora configurato"}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "未找到。请下载免费的 WineHQ 或 WineCX 引擎,或使用 CrossOver(%@)。"+ "value" : "尚未设置"}}}},- "Not Now" : {+ "Not set up. Bridgeplay still works, but after each update you'll need to allow your controller again." : {"localizations" : {"it" : {"stringUnit" : {"state" : "translated",- "value" : "Non ora"+ "value" : "Non configurato. Bridgeplay funziona comunque, ma dopo ogni aggiornamento dovrai consentire di nuovo il controller."}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "暂不"+ "value" : "尚未设置。Bridgeplay 仍可使用,但每次更新后你都需要重新允许控制器。"}}}},- "Not installed." : {+ "Not yet deployed." : {"localizations" : {"it" : {"stringUnit" : {"state" : "translated",- "value" : "Non installato."+ "value" : "Non ancora installati."}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "尚未安装。"+ "value" : "尚未部署。"}}}},- "Not set up yet" : {+ "OK" : {"localizations" : {"it" : {"stringUnit" : {"state" : "translated",- "value" : "Non ancora configurato"+ "value" : "OK"}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "尚未设置"+ "value" : "好"}}}},- "Not set up. Bridgeplay still works, but after each update you'll need to allow your controller again." : {+ "Off" : {"localizations" : {"it" : {"stringUnit" : {"state" : "translated",- "value" : "Non configurato. Bridgeplay funziona comunque, ma dopo ogni aggiornamento dovrai consentire di nuovo il controller."+ "value" : "Disattivato"}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "尚未设置。Bridgeplay 仍可使用,但每次更新后你都需要重新允许控制器。"+ "value" : "关闭"}}}},- "Not yet deployed." : {+ "On by default. Mac Steam has no virtual gamepad for Windows games, so games read the pad themselves. Turn it off only to use Steam Input's button remapping." : {"localizations" : {"it" : {"stringUnit" : {"state" : "translated",- "value" : "Non ancora installati."+ "value" : "Attivo per impostazione predefinita. Steam per Mac non ha un gamepad virtuale per i giochi Windows, quindi i giochi leggono il pad da soli. Disattivalo solo per usare la rimappatura dei tasti di Steam Input."}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "尚未部署。"+ "value" : "默认开启。Mac 版 Steam 没有适用于 Windows 游戏的虚拟手柄,所以游戏自己读取手柄。仅在需要 Steam Input 的按键映射时才关闭。"}}}},- "OK" : {+ "Only on native Mac games, next to Metal HUD and Frame Generation. Raw HID suits Unity, SDL and Unreal games, GameController uses Apple's framework, and Off leaves controllers alone." : {"localizations" : {"it" : {"stringUnit" : {"state" : "translated",- "value" : "OK"+ "value" : "Solo per i giochi nativi per Mac, accanto a Metal HUD e Generazione fotogrammi. Raw HID va bene per i giochi Unity, SDL e Unreal, GameController usa il framework di Apple e Disattivato lascia stare i controller."}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "好"+ "value" : "仅限原生 Mac 游戏,位于 Metal HUD 和帧生成旁边。Raw HID 适合 Unity、SDL 和 Unreal 游戏,GameController 使用 Apple 的框架,关闭则不处理控制器。"}}}@@ -5122,6 +5890,22 @@}}},+ "Privacy" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Privacy"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "隐私"+ }+ }+ }+ },"Private Size" : {"localizations" : {"it" : {@@ -5138,6 +5922,38 @@}}},+ "Properties…" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Proprietà…"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "属性…"+ }+ }+ }+ },+ "Protect UI (keeps static HUD and menus sharp)" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Proteggi interfaccia (mantiene nitidi HUD e menu statici)"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "保护界面(保持静态 HUD 和菜单清晰)"+ }+ }+ }+ },"Putting Steam back as it was also failed, so Steam may not start: %@ Use Repair Steam to restore it." : {"localizations" : {"it" : {@@ -5154,6 +5970,22 @@}}},+ "Quality" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Qualità"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "画质"+ }+ }+ }+ },"Quit Steam, then press Try Again." : {"localizations" : {"it" : {@@ -5714,6 +6546,22 @@}}},+ "Remove from Favorites" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Rimuovi dai preferiti"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "从收藏夹中移除"+ }+ }+ }+ },"Remove from List" : {"localizations" : {"it" : {@@ -6210,6 +7058,22 @@}}},+ "Select compatibility tool" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Seleziona strumento di compatibilità"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "选择兼容性工具"+ }+ }+ }+ },"Select your copy of Steam." : {"localizations" : {"it" : {@@ -6370,6 +7234,22 @@}}},+ "Show all compatibility tools" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Mostra tutti gli strumenti di compatibilità"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "显示所有兼容性工具"+ }+ }+ }+ },"Show in Finder" : {"localizations" : {"it" : {@@ -6418,6 +7298,22 @@}}},+ "Shown with Automatic or DXMT. Renders below your display's resolution and scales up with MetalFX: 1.5×, 1.72×, 2× or 3×. Off keeps the resolution set in the game." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Visibile con Automatico o DXMT. Renderizza sotto la risoluzione dello schermo e ingrandisce con MetalFX: 1.5×, 1.72×, 2× o 3×. Disattivato mantiene la risoluzione impostata nel gioco."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "在“自动”或 DXMT 下显示。以低于显示器的分辨率渲染,再用 MetalFX 放大:1.5×、1.72×、2× 或 3×。关闭则保持游戏中设置的分辨率。"+ }+ }+ }+ },"Sign in to Steam" : {"localizations" : {"it" : {@@ -7157,6 +8053,22 @@}}},+ "Steam's own switch. It also lists tools made for Linux, which do not run on a Mac. Leave it off." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "È un interruttore di Steam. Elenca anche strumenti fatti per Linux, che non girano su Mac. Lascialo disattivato."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "这是 Steam 自带的开关。它还会列出为 Linux 制作的工具,这些工具无法在 Mac 上运行。请保持关闭。"+ }+ }+ }+ },"Steam's update removed Bridgeplay, so Windows games won't start." : {"localizations" : {"it" : {@@ -7221,6 +8133,22 @@}}},+ "Takes what did not move, like a HUD or a menu, straight from the real frame instead of warping it." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Prende ciò che non si è mosso, come un HUD o un menu, direttamente dal fotogramma reale invece di deformarlo."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "没有移动的部分(如 HUD 或菜单)直接取自真实帧,而不是做扭曲处理。"+ }+ }+ }+ },"Task Manager" : {"localizations" : {"it" : {@@ -7237,6 +8165,22 @@}}},+ "Tells the game the processor supports AVX2, which some recent games need to start." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Dice al gioco che il processore supporta AVX2, necessario per avviarsi ad alcuni giochi recenti."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "告知游戏处理器支持 AVX2,部分较新的游戏需要它才能启动。"+ }+ }+ }+ },"Template cleanup incomplete" : {"localizations" : {"it" : {@@ -7669,6 +8613,22 @@}}},+ "The first launch takes longer" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Il primo avvio richiede più tempo"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "首次启动需要更长时间"+ }+ }+ }+ },"The first time a game uses a controller, macOS asks to let Steam use Input Monitoring. Click Allow. If you missed it, turn on Steam in Input Monitoring." : {"localizations" : {"it" : {@@ -8245,6 +9205,22 @@}}},+ "Updates" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Aggiornamenti"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "更新"+ }+ }+ }+ },"Use This" : {"localizations" : {"it" : {@@ -8373,6 +9349,22 @@}}},+ "Vulkan in a game's own settings" : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vulkan nelle impostazioni del gioco"+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "游戏自身设置中的 Vulkan"+ }+ }+ }+ },"Waiting for you to sign in. Bridgeplay never sees your password." : {"localizations" : {"it" : {@@ -8389,6 +9381,54 @@}}},+ "When motion is too fast to track, shows the nearest real frame instead of a smeared one." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Quando il movimento è troppo veloce da seguire, mostra il fotogramma reale più vicino invece di uno sfocato."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "运动太快无法追踪时,显示最接近的真实帧,而不是带拖影的帧。"+ }+ }+ }+ },+ "Which engine runs the game. Default is Bridgeplay's own: WineCX 11.17 with msync and D3DMetal. WineHQ 11.15 is there for games that want DXMT or DXVK. Pick a Proton build only if you know it runs on a Mac." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Quale motore esegue il gioco. Quello predefinito è di Bridgeplay: WineCX 11.17 con msync e D3DMetal. WineHQ 11.15 serve ai giochi che vogliono DXMT o DXVK. Scegli una build di Proton solo se sai che gira su Mac."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "由哪个引擎运行游戏。默认是 Bridgeplay 自带的:WineCX 11.17,配合 msync 和 D3DMetal。WineHQ 11.15 供需要 DXMT 或 DXVK 的游戏使用。只有确定某个 Proton 版本能在 Mac 上运行时才选它。"+ }+ }+ }+ },+ "Windows games install and start from your Steam library like Mac games. Each game's Bridgeplay settings are in Steam, on its Properties page, and every one is explained below." : {+ "localizations" : {+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "I giochi Windows si installano e si avviano dalla libreria di Steam come quelli per Mac. Le impostazioni Bridgeplay di ogni gioco sono in Steam, nella sua pagina Proprietà, e sono tutte spiegate qui sotto."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Windows 游戏和 Mac 游戏一样,直接在 Steam 库中安装和启动。每个游戏的 Bridgeplay 设置都在 Steam 中该游戏的“属性”页面,下面逐一说明。"+ }+ }+ }+ },"Windows games." : {"localizations" : {"it" : {diff --git a/app/Sources/BridgeplayApp/Views/GuideView.swift b/app/Sources/BridgeplayApp/Views/GuideView.swiftnew file mode 100644index 0000000..102a0e3--- /dev/null+++ b/app/Sources/BridgeplayApp/Views/GuideView.swift@@ -0,0 +1,507 @@+import SwiftUI++// How to reach a game's Bridgeplay settings in Steam, and what every one of them does. The+// pictures are drawings of Steam's own screens in Steam's colours (like the ones on+// bridgeplay.dev), not screenshots: the game list is the player's own, read from Steam's+// library cache, so no game art ships with Bridgeplay. The option names and order follow the+// panel the dylib adds to Steam's Compatibility page (dylib/feats/webpatch.c); keep them in step.+struct GuideView: View {+ @State private var entries: [LibraryEntry] = LibraryEntry.samples++ private var game: String { entries.count > 1 ? entries[1].name : "Deadlock" }++ var body: some View {+ ScrollView {+ VStack(alignment: .leading, spacing: 40) {+ header+ steps+ compatibilityPage+ tips+ }+ .padding(.horizontal, 32)+ .padding(.vertical, 28)+ .frame(maxWidth: 820, alignment: .leading)+ .frame(maxWidth: .infinity)+ }+ .navigationTitle("Guide")+ .task {+ let local = await Task.detached(priority: .utility) { LibraryEntry.local(limit: 6) }.value+ if local.count >= 3 { entries = local }+ }+ }++ // MARK: Header and steps++ private var header: some View {+ VStack(alignment: .leading, spacing: 10) {+ Text("Guide")+ .font(BP.sans(11, .semibold))+ .tracking(0.9)+ .textCase(.uppercase)+ .foregroundStyle(BP.iridescent)+ Text("Bridgeplay lives in Steam")+ .font(BP.sans(30, .semibold))+ .tracking(-1)+ Text("Windows games install and start from your Steam library like Mac games. Each game's Bridgeplay settings are in Steam, on its Properties page, and every one is explained below.")+ .font(BP.sans(14))+ .foregroundStyle(BP.fg2)+ .fixedSize(horizontal: false, vertical: true)+ }+ }++ private var steps: some View {+ HStack(alignment: .top, spacing: 18) {+ GuideStep(number: 1, text: String(localized: "In your Steam library, right-click the game and choose Properties…")) {+ SteamLibraryDrawing(entries: entries)+ }+ GuideStep(number: 2, text: String(localized: "Choose Compatibility. Bridgeplay's settings follow Steam Play on that page.")) {+ SteamPropertiesDrawing(game: game)+ }+ }+ }++ // MARK: The Compatibility page, block by block++ private var compatibilityPage: some View {+ VStack(alignment: .leading, spacing: 18) {+ VStack(alignment: .leading, spacing: 6) {+ Text("Every setting on the Compatibility page")+ .font(BP.sans(20, .semibold))+ .tracking(-0.5)+ Text("Drawn the way Steam shows them. Changes apply the next time the game starts. Not sure? Leave a setting as it is: Bridgeplay picks what works for each game.")+ .font(BP.sans(13))+ .foregroundStyle(BP.fg2)+ .fixedSize(horizontal: false, vertical: true)+ }++ SteamBlock(title: "Steam Play") {+ SteamRow(.select(String(localized: "Select compatibility tool"), "Default (WineCX 11.17 (msync, D3D…"),+ note: String(localized: "Which engine runs the game. Default is Bridgeplay's own: WineCX 11.17 with msync and D3DMetal. WineHQ 11.15 is there for games that want DXMT or DXVK. Pick a Proton build only if you know it runs on a Mac."))+ SteamRow(.toggle(String(localized: "Show all compatibility tools"), false),+ note: String(localized: "Steam's own switch. It also lists tools made for Linux, which do not run on a Mac. Leave it off."))+ }++ SteamBlock(title: String(localized: "Graphics")) {+ SteamRow(.dropdown(nil, String(localized: "Automatic")),+ note: String(localized: "How the game's DirectX reaches your GPU. Automatic picks per game. D3DMetal (Apple's Game Porting Toolkit) runs DirectX 11 and 12 and is the default. DXMT runs DirectX 10 and 11 directly on Metal. DXVK runs DirectX 9 to 11 through Vulkan. WineD3D is Wine's own translation, for very old games."))+ SteamRow(.check(String(localized: "Metal HUD"), true),+ note: String(localized: "Apple's performance overlay: frame rate, frame time and GPU use."))+ SteamRow(.check("DLSS", true),+ note: String(localized: "Lets the game offer NVIDIA DLSS. Apple's MetalFX does the upscaling, and DLSS Frame Generation runs on MetalFX too. Turn DLSS on in the game's own settings as well."))+ SteamRow(.check(String(localized: "Advertise AVX2 to Rosetta"), true),+ note: String(localized: "Tells the game the processor supports AVX2, which some recent games need to start."))+ SteamRow(.check("MSync", true),+ note: String(localized: "A faster way for the game's threads to wait on each other. Leave it on unless a game hangs."))+ SteamRow(.check(String(localized: "High Resolution"), true),+ note: String(localized: "Draws at your display's full Retina resolution instead of half. Sharper, heavier on the GPU."))+ }++ SteamBlock(title: String(localized: "MetalFX Upscaling (Samples from the resolution the game is set to)")) {+ SteamRow(.dropdown(nil, String(localized: "Off")),+ note: String(localized: "Shown with Automatic or DXMT. Renders below your display's resolution and scales up with MetalFX: 1.5×, 1.72×, 2× or 3×. Off keeps the resolution set in the game."))+ }++ SteamBlock(title: String(localized: "Frame Generation (Experimental. Adds input lag)")) {+ SteamRow(.dropdown(String(localized: "Mode"), "2x"),+ note: String(localized: "Adds generated frames between the game's own: 2x, 3x, or Adaptive, which fills up to your display's refresh rate. Smoother motion, a little more input lag. Works with any game, native Mac games included."))+ SteamRow(.dropdown(String(localized: "Quality"), String(localized: "Balanced")),+ note: String(localized: "How finely motion is tracked between frames. Performance is the lightest, Quality the most precise, Balanced in between."))+ SteamRow(.check(String(localized: "Protect UI (keeps static HUD and menus sharp)"), true),+ note: String(localized: "Takes what did not move, like a HUD or a menu, straight from the real frame instead of warping it."))+ SteamRow(.check(String(localized: "Fast-motion fallback (skips frames that would smear)"), true),+ note: String(localized: "When motion is too fast to track, shows the nearest real frame instead of a smeared one."))+ SteamRow(.dropdown(String(localized: "Engine"), String(localized: "Built-in optical flow")),+ note: String(localized: "Built-in optical flow follows the mode above. MetalFX uses Apple's frame interpolation and makes one frame per pair."))+ }++ SteamBlock(title: String(localized: "Controllers")) {+ SteamRow(.check(String(localized: "Let games read controllers directly (Recommended on Mac. Turn off only for Steam Input remapping)"), true),+ note: String(localized: "On by default. Mac Steam has no virtual gamepad for Windows games, so games read the pad themselves. Turn it off only to use Steam Input's button remapping."))+ SteamRow(.check(String(localized: "Disable hidraw"), false),+ note: String(localized: "Hides raw HID devices from the game, so pads only show up through SDL. Try it if a game sees one controller twice or ignores yours."))+ }++ SteamBlock(title: String(localized: "Native Mac games")) {+ SteamRow(.dropdown(String(localized: "Controller layer"), String(localized: "Automatic")),+ note: String(localized: "Only on native Mac games, next to Metal HUD and Frame Generation. Raw HID suits Unity, SDL and Unreal games, GameController uses Apple's framework, and Off leaves controllers alone."))+ }+ }+ }++ private var tips: some View {+ VStack(alignment: .leading, spacing: 12) {+ Text("Good to know")+ .font(BP.sans(20, .semibold))+ .tracking(-0.5)+ VStack(spacing: 0) {+ ForEach(Array(Self.tips.enumerated()), id: \.offset) { index, tip in+ if index > 0 { Rectangle().fill(BP.line).frame(height: 1) }+ VStack(alignment: .leading, spacing: 3) {+ Text(tip.title).font(BP.sans(14, .semibold)).tracking(-0.2)+ Text(tip.detail).font(BP.sans(13)).foregroundStyle(BP.fg2)+ .fixedSize(horizontal: false, vertical: true)+ }+ .frame(maxWidth: .infinity, alignment: .leading)+ .padding(.horizontal, 16)+ .padding(.vertical, 12)+ }+ }+ .background(BP.raise, in: RoundedRectangle(cornerRadius: BP.radius, style: .continuous))+ .overlay(RoundedRectangle(cornerRadius: BP.radius, style: .continuous).strokeBorder(BP.line, lineWidth: 1))+ }+ }++ static let tips: [(title: String, detail: String)] = [+ (String(localized: "The first launch takes longer"),+ String(localized: "Bridgeplay sets the game up and the game prepares its graphics, which can show a black screen for a few minutes. Later launches are quick.")),+ (String(localized: "Controllers"),+ String(localized: "DualSense, Xbox, GameSir and other pads work without a mapping screen. The first time a game uses one, allow Steam in Input Monitoring.")),+ (String(localized: "Vulkan in a game's own settings"),+ String(localized: "Games that offer Vulkan as a rendering option run it through MoltenVK, without DLSS. Prefer DirectX 11 or 12.")),+ (String(localized: "Games with kernel anti-cheat"),+ String(localized: "Do not run. Their anti-cheat needs a Windows driver.")),+ ]+}++// MARK: - Steam's look++private enum Steam {+ static let window = Color(hex: 0x1B1E24)+ static let sidebar = Color(hex: 0x2A2D33)+ static let sidebarSelected = Color(hex: 0x3D4048)+ static let row = Color(hex: 0x2A2E37)+ static let control = Color(hex: 0x353A44)+ static let text = Color(hex: 0xDCDEDF)+ static let dim = Color(hex: 0x8B929A)+ static let blue = Color(hex: 0x1A9FFF)+ static let library = Color(hex: 0x171D25)+ static let menu = Color(hex: 0x3D4450)+ static let playTop = Color(hex: 0x75B022)+ static let playBottom = Color(hex: 0x588A1B)++ static func font(_ size: CGFloat, _ weight: Font.Weight) -> Font { .system(size: size, weight: weight) }+}++private struct GuideStep<Drawing: View>: View {+ let number: Int+ let text: String+ @ViewBuilder let drawing: Drawing++ var body: some View {+ VStack(alignment: .leading, spacing: 12) {+ drawing+ .frame(height: 270)+ .frame(maxWidth: .infinity)+ .clipShape(RoundedRectangle(cornerRadius: BP.radius, style: .continuous))+ .overlay(RoundedRectangle(cornerRadius: BP.radius, style: .continuous).strokeBorder(BP.lineStrong, lineWidth: 1))+ .shadow(color: .black.opacity(0.5), radius: 18, y: 10)+ .accessibilityHidden(true)+ HStack(alignment: .firstTextBaseline, spacing: 10) {+ Text(verbatim: "\(number)")+ .font(BP.sans(12, .semibold))+ .foregroundStyle(.black)+ .frame(width: 22, height: 22)+ .background(BP.iridescentDiagonal, in: RoundedRectangle(cornerRadius: 6, style: .continuous))+ Text(text)+ .font(BP.sans(13))+ .foregroundStyle(BP.fg2)+ .fixedSize(horizontal: false, vertical: true)+ }+ }+ .frame(maxWidth: .infinity, alignment: .leading)+ }+}++// The library list with the game's context menu open on Properties….+private struct SteamLibraryDrawing: View {+ let entries: [LibraryEntry]++ var body: some View {+ ZStack(alignment: .topLeading) {+ LinearGradient(colors: [Color(hex: 0x1F2733), Steam.library], startPoint: .top, endPoint: .bottom)+ VStack(alignment: .leading, spacing: 1) {+ Text(verbatim: "— FAVORITES (\(entries.count)/\(max(entries.count, 25)))")+ .font(Steam.font(10, .semibold))+ .tracking(1)+ .foregroundStyle(Color(hex: 0x8F98A0))+ .padding(.bottom, 6)+ ForEach(Array(entries.enumerated()), id: \.offset) { index, entry in+ HStack(spacing: 8) {+ Group {+ if let icon = entry.icon {+ Image(nsImage: icon).resizable().interpolation(.high)+ } else {+ Color.white.opacity(0.12)+ }+ }+ .frame(width: 18, height: 18)+ Text(verbatim: entry.name)+ .font(Steam.font(12, .regular))+ .foregroundStyle(Steam.text)+ .lineLimit(1)+ }+ .padding(.horizontal, 6)+ .padding(.vertical, 4)+ .frame(width: 190, alignment: .leading)+ .background(index == 1 ? Color(hex: 0x2B3443) : .clear)+ .overlay(index == 1 ? Rectangle().strokeBorder(Color(hex: 0x4C6B8A), lineWidth: 1) : nil)+ }+ }+ .padding(14)++ VStack(alignment: .leading, spacing: 0) {+ HStack(spacing: 8) {+ Image(systemName: "play.fill").font(.system(size: 10))+ Text(verbatim: "PLAY").font(Steam.font(12, .medium)).tracking(1.5)+ Spacer()+ }+ .foregroundStyle(.white)+ .padding(.horizontal, 10)+ .frame(height: 30)+ .background(LinearGradient(colors: [Steam.playTop, Steam.playBottom], startPoint: .leading, endPoint: .trailing),+ in: RoundedRectangle(cornerRadius: 2))+ .padding(4)+ menuItem(String(localized: "Remove from Favorites"))+ menuItem(String(localized: "Add to"), chevron: true)+ menuItem(String(localized: "Manage"), chevron: true)+ menuItem(String(localized: "Properties…"), selected: true)+ }+ .frame(width: 176)+ .background(Steam.menu)+ .overlay(Rectangle().strokeBorder(Color.black.opacity(0.4), lineWidth: 1))+ .shadow(color: .black.opacity(0.6), radius: 14, y: 8)+ .offset(x: 128, y: 66)+ }+ }++ private func menuItem(_ title: String, chevron: Bool = false, selected: Bool = false) -> some View {+ HStack {+ Text(title).font(Steam.font(12, .regular))+ Spacer()+ if chevron { Image(systemName: "chevron.right").font(.system(size: 9, weight: .semibold)) }+ }+ .foregroundStyle(selected ? Steam.menu : Steam.text)+ .padding(.horizontal, 12)+ .frame(height: 30)+ .background(selected ? Color(hex: 0xDCDEDF) : .clear)+ }+}++// The Properties window on Compatibility, as Steam draws it.+private struct SteamPropertiesDrawing: View {+ let game: String++ private let tabs: [LocalizedStringKey] = ["General", "Compatibility", "Updates", "Installed Files",+ "Game Versions & Betas", "Controller", "Game Recording",+ "Privacy", "Customization"]++ var body: some View {+ HStack(spacing: 0) {+ VStack(alignment: .leading, spacing: 0) {+ HStack(spacing: 5) {+ Circle().fill(Color(hex: 0xFF5F57)).frame(width: 7, height: 7)+ Circle().fill(Color(hex: 0xFEBC2E)).frame(width: 7, height: 7)+ Circle().fill(Color(hex: 0x28C840)).frame(width: 7, height: 7)+ }+ .padding(.bottom, 12)+ Text(verbatim: game.uppercased())+ .font(Steam.font(13, .bold))+ .foregroundStyle(Steam.blue)+ .lineLimit(1)+ .padding(.bottom, 8)+ ForEach(Array(tabs.enumerated()), id: \.offset) { index, tab in+ Text(tab)+ .font(Steam.font(10.5, .regular))+ .foregroundStyle(index == 1 ? Color.white : Steam.dim)+ .lineLimit(1)+ .fixedSize()+ .padding(.horizontal, 10)+ .frame(maxWidth: .infinity, minHeight: 21, alignment: .leading)+ .background(index == 1 ? Steam.sidebarSelected : .clear)+ .padding(.horizontal, -10)+ }+ Spacer(minLength: 0)+ }+ .padding(.horizontal, 10)+ .padding(.top, 10)+ .frame(width: 130)+ .background(Steam.sidebar)++ VStack(alignment: .leading, spacing: 7) {+ Text("Compatibility").font(Steam.font(15, .bold)).foregroundStyle(.white)+ Text(verbatim: "Steam Play").font(Steam.font(11, .semibold)).foregroundStyle(.white).padding(.top, 2)+ HStack {+ Text("Select compatibility tool").font(Steam.font(9.5, .regular)).foregroundStyle(Steam.text)+ Spacer()+ mini("Default (WineCX 11.17…")+ }+ .padding(7).background(Steam.row)+ Text("Graphics").font(Steam.font(11, .semibold)).foregroundStyle(.white).padding(.top, 4)+ mini(String(localized: "Automatic"), wide: true)+ ForEach([String(localized: "Metal HUD"), "DLSS", "MSync", String(localized: "High Resolution")], id: \.self) { label in+ HStack(spacing: 7) {+ checkbox(true)+ Text(verbatim: label).font(Steam.font(9.5, .regular)).foregroundStyle(Steam.text)+ Spacer()+ }+ .padding(5).background(Steam.row)+ }+ Spacer(minLength: 0)+ }+ .padding(12)+ .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)+ .background(Steam.window)+ }+ }++ private func mini(_ value: String, wide: Bool = false) -> some View {+ HStack(spacing: 4) {+ Text(verbatim: value).font(Steam.font(9, .regular)).lineLimit(1)+ if wide { Spacer() }+ Image(systemName: "chevron.down").font(.system(size: 7, weight: .semibold)).foregroundStyle(Steam.blue)+ }+ .foregroundStyle(Steam.text)+ .padding(.horizontal, 7)+ .frame(height: 20)+ .background(Steam.control)+ }++ private func checkbox(_ on: Bool) -> some View {+ RoundedRectangle(cornerRadius: 2).fill(Color(hex: 0x1F2229)).frame(width: 13, height: 13)+ .overlay(on ? Image(systemName: "checkmark").font(.system(size: 8, weight: .heavy)).foregroundStyle(Steam.blue) : nil)+ }+}++// One block of the Compatibility page at Steam's size, each control followed by what it does.+private struct SteamBlock<Rows: View>: View {+ let title: String+ @ViewBuilder let rows: Rows++ var body: some View {+ VStack(alignment: .leading, spacing: 10) {+ Text(verbatim: title)+ .font(Steam.font(16, .bold))+ .foregroundStyle(.white)+ VStack(alignment: .leading, spacing: 6) { rows }+ }+ .padding(20)+ .frame(maxWidth: .infinity, alignment: .leading)+ .background(Steam.window, in: RoundedRectangle(cornerRadius: BP.radius, style: .continuous))+ .overlay(RoundedRectangle(cornerRadius: BP.radius, style: .continuous).strokeBorder(BP.line, lineWidth: 1))+ }+}++private struct SteamRow: View {+ enum Control {+ case select(String, String)+ case toggle(String, Bool)+ case dropdown(String?, String)+ case check(String, Bool)+ }++ let control: Control+ let note: String++ init(_ control: Control, note: String) {+ self.control = control+ self.note = note+ }++ var body: some View {+ VStack(alignment: .leading, spacing: 8) {+ rendered+ HStack(alignment: .top, spacing: 8) {+ Rectangle().fill(BP.iridescent).frame(width: 2)+ Text(note)+ .font(BP.sans(12.5))+ .foregroundStyle(BP.fg2)+ .fixedSize(horizontal: false, vertical: true)+ }+ .padding(.leading, 4)+ .padding(.bottom, 8)+ }+ }++ @ViewBuilder+ private var rendered: some View {+ switch control {+ case .select(let label, let value):+ HStack {+ Text(verbatim: label).font(Steam.font(13, .regular)).foregroundStyle(Steam.text)+ Spacer()+ dropdownBox(value).frame(width: 260)+ }+ .padding(.horizontal, 14).frame(height: 46).background(Steam.row)+ case .toggle(let label, let on):+ HStack {+ Text(verbatim: label).font(Steam.font(13, .regular)).foregroundStyle(Steam.text)+ Spacer()+ Capsule().fill(on ? Steam.blue : Color(hex: 0x3D4048)).frame(width: 38, height: 20)+ .overlay(alignment: on ? .trailing : .leading) { Circle().fill(.white).frame(width: 18, height: 18).padding(1) }+ }+ .padding(.horizontal, 14).frame(height: 46).background(Steam.row)+ case .dropdown(let caption, let value):+ VStack(alignment: .leading, spacing: 6) {+ if let caption {+ Text(verbatim: caption.uppercased()).font(Steam.font(11, .regular)).foregroundStyle(Steam.dim)+ }+ dropdownBox(value)+ }+ case .check(let label, let on):+ HStack(spacing: 10) {+ RoundedRectangle(cornerRadius: 2).fill(Color(hex: 0x1F2229)).frame(width: 20, height: 20)+ .overlay(on ? Image(systemName: "checkmark").font(.system(size: 12, weight: .heavy)).foregroundStyle(Steam.blue) : nil)+ Text(verbatim: label).font(Steam.font(13, .regular)).foregroundStyle(Steam.text)+ Spacer()+ }+ .padding(.horizontal, 10).frame(height: 38).background(Steam.row)+ }+ }++ private func dropdownBox(_ value: String) -> some View {+ HStack {+ Text(verbatim: value).font(Steam.font(13, .regular)).foregroundStyle(Steam.text).lineLimit(1)+ Spacer()+ Image(systemName: "chevron.down").font(.system(size: 10, weight: .semibold)).foregroundStyle(Steam.blue)+ }+ .padding(.horizontal, 12)+ .frame(height: 34)+ .background(Steam.control)+ }+}++// MARK: - The player's own games++struct LibraryEntry {+ let name: String+ let icon: NSImage?++ static let samples = ["007 First Light", "Deadlock", "Marvel's Spider-Man 2", "Ravenswatch",+ "Resident Evil Requiem", "TEKKEN 8"]+ .map { LibraryEntry(name: $0, icon: nil) }++ // Installed games that have run under a compatibility tool, by name, with the small icon+ // Steam keeps at appcache/librarycache/<appid>/<hash>.jpg.+ nonisolated static func local(limit: Int) -> [LibraryEntry] {+ let fm = FileManager.default+ let cache = SupportPaths.Steam.userData.appending(path: "appcache/librarycache")+ var found: [LibraryEntry] = []+ for library in PrefixStore.libraries() {+ let steamapps = library.steamapps+ let names = (try? fm.contentsOfDirectory(atPath: steamapps.path(percentEncoded: false))) ?? []+ for name in names where name.hasPrefix("appmanifest_") && name.hasSuffix(".acf") {+ let id = String(name.dropFirst("appmanifest_".count).dropLast(".acf".count))+ guard fm.fileExists(atPath: steamapps.appending(path: "compatdata/\(id)").path(percentEncoded: false)),+ let text = try? String(contentsOf: steamapps.appending(path: name), encoding: .utf8),+ let title = GameCovers.title(inManifest: text) else { continue }+ let folder = cache.appending(path: id)+ let icon = ((try? fm.contentsOfDirectory(at: folder, includingPropertiesForKeys: nil)) ?? [])+ .first { $0.pathExtension.lowercased() == "jpg" }+ .flatMap { NSImage(contentsOf: $0) }+ found.append(LibraryEntry(name: title, icon: icon))+ }+ }+ return Array(found.sorted { $0.name.localizedStandardCompare($1.name) == .orderedAscending }+ .filter { $0.icon != nil }.prefix(limit))+ }+}diff --git a/app/Sources/BridgeplayApp/Views/RootView.swift b/app/Sources/BridgeplayApp/Views/RootView.swiftindex b06d0e7..1a53332 100644--- a/app/Sources/BridgeplayApp/Views/RootView.swift+++ b/app/Sources/BridgeplayApp/Views/RootView.swift@@ -4,6 +4,7 @@ enum Pane: String, CaseIterable, Identifiable, Hashable {case statuscase prefixescase backups+ case guidevar id: String { rawValue }@@ -12,6 +13,7 @@ enum Pane: String, CaseIterable, Identifiable, Hashable {case .status: String(localized: "Status")case .prefixes: String(localized: "Prefixes")case .backups: String(localized: "Prefix Backups")+ case .guide: String(localized: "Guide")}}@@ -20,6 +22,7 @@ enum Pane: String, CaseIterable, Identifiable, Hashable {case .status: "checklist"case .prefixes: "externaldrive"case .backups: "externaldrive.badge.timemachine"+ case .guide: "book"}}}@@ -73,6 +76,7 @@ struct RootView: View {case .status: StatusView()case .prefixes: PrefixesView()case .backups: BackupsView()+ case .guide: GuideView()}}.safeAreaInset(edge: .top, spacing: 0) {