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
Game page: Apply <game> fix button
Gauthier Piarrette83bb56a08a36
diff --git a/Sources/HighballApp/GameDetailView.swift b/Sources/HighballApp/GameDetailView.swiftindex 580ff6e..dfdaf1d 100644--- a/Sources/HighballApp/GameDetailView.swift+++ b/Sources/HighballApp/GameDetailView.swift@@ -11,6 +11,15 @@ struct GameDetailView: View {private var entry: GameDBEntry? { item.steamAppID.flatMap { state.gameDB[$0] } }private var bottle: Bottle? { item.bottleName.flatMap { name in state.bottles.first { $0.name == name } } }private var blocked: Bool { entry?.isBlocked == true }+ /// A game recipe shares its id with the db entry (portal-2, assetto-corsa…). When one+ /// exists, the page offers it — this was CLI-only, which no first-time user finds.+ private var fixRecipe: HighballKit.Recipe? {+ entry.flatMap { AppState.recipe($0.id) }.flatMap { $0.kind == .game ? $0 : nil }+ }+ private var fixApplied: Bool {+ guard let fixRecipe, let bottle else { return false }+ return bottle.settings.recipes.contains(fixRecipe.id)+ }var body: some View {ScrollView {@@ -101,6 +110,13 @@ struct GameDetailView: View {}Spacer()if item.installed {+ if let fixRecipe, let bottle, !fixApplied {+ Button(String(format: L("Apply %@ fix"), item.title)) {+ state.applyRecipe(fixRecipe.id, to: bottle)+ }+ .disabled(state.busy)+ .help(L("Sets this game up the way the compatibility database verified it — renderer, settings, dependencies."))+ }Button(L("Play")) { state.play(item) }.buttonStyle(.borderedProminent).disabled(state.busy || blocked)if bottle != nil {diff --git a/Sources/HighballApp/L10n.swift b/Sources/HighballApp/L10n.swiftindex 5186df4..98e15f3 100644--- a/Sources/HighballApp/L10n.swift+++ b/Sources/HighballApp/L10n.swift@@ -155,6 +155,9 @@ enum L10n {"Choose cover image…": "Choisir une image de couverture…","Reset cover": "Réinitialiser la couverture","Choose a cover image for %@": "Choisir une image de couverture pour %@",+ "Apply %@ fix": "Appliquer le correctif %@",+ "Sets this game up the way the compatibility database verified it — renderer, settings, dependencies.":+ "Configure ce jeu tel que la base de compatibilité l'a vérifié : moteur de rendu, réglages, dépendances.","Hide": "Masquer","Close": "Fermer","Details": "Détails",