Skip to content

Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.

Mark flaky/blocked launchers honestly in the grid, not a clean Install

Gauthier Piarrettef4561cdf836e
diff --git a/Sources/HighballApp/BottleView.swift b/Sources/HighballApp/BottleView.swift
index 0489854..213c7bd 100644
--- a/Sources/HighballApp/BottleView.swift
+++ b/Sources/HighballApp/BottleView.swift
@@ -223,7 +223,7 @@ struct BottleView: View {
let installed = bottle.settings.recipes.contains(meta.id)
let pin = bottle.settings.pins.first { $0.name.lowercased().hasPrefix(meta.short.lowercased().prefix(5)) }
LauncherTile(title: meta.short, symbol: meta.symbol, installed: installed, busy: state.busy,
- blockedReason: recipe.blocked?.reason) {
+ blockedReason: recipe.blocked?.reason, flakyReason: recipe.flaky?.reason) {
if installed, let pin { state.launch(pin: pin, in: bottle) }
else { state.applyRecipe(meta.id, to: bottle) }
}
@@ -435,10 +435,12 @@ struct LauncherTile: View {
let installed: Bool
let busy: Bool
var blockedReason: String? = nil
+ var flakyReason: String? = nil
let action: () -> Void
@State private var hovering = false
private var blocked: Bool { blockedReason != nil && !installed }
+ private var flaky: Bool { flakyReason != nil && !installed && !blocked }
var body: some View {
Button(action: action) {
@@ -465,9 +467,11 @@ struct LauncherTile: View {
}
}
Text(title).font(.system(size: 11.5, weight: .medium)).lineLimit(1)
- Text(installed ? L("Open") : (blocked ? L("Blocked") : L("Install")))
+ Text(installed ? L("Open") : (blocked ? L("Blocked") : (flaky ? L("Flaky") : L("Install"))))
.font(.system(size: 9.5).monospaced())
- .foregroundStyle(installed ? AnyShapeStyle(HB.good) : (blocked ? AnyShapeStyle(HB.bad.opacity(0.85)) : AnyShapeStyle(.tertiary)))
+ .foregroundStyle(installed ? AnyShapeStyle(HB.good)
+ : (blocked ? AnyShapeStyle(HB.bad.opacity(0.85))
+ : (flaky ? AnyShapeStyle(HB.amber) : AnyShapeStyle(.tertiary))))
}
.frame(maxWidth: .infinity)
.padding(.vertical, 12)
@@ -477,7 +481,8 @@ struct LauncherTile: View {
}
.buttonStyle(.plain)
.disabled(busy || blocked)
- .help(blockedReason.map { L("Blocked on the current engine: ") + $0 } ?? "")
+ .help(blockedReason.map { L("Blocked on the current engine: ") + $0 }
+ ?? flakyReason.map { L("Known issues: ") + $0 } ?? "")
.animation(.easeOut(duration: 0.12), value: hovering)
.onHover { hovering = $0 }
}
diff --git a/Sources/HighballApp/L10n.swift b/Sources/HighballApp/L10n.swift
index 8e322bb..e89c6b9 100644
--- a/Sources/HighballApp/L10n.swift
+++ b/Sources/HighballApp/L10n.swift
@@ -37,6 +37,8 @@ enum L10n {
"Scales the Windows desktop and UI, 100% to 250%. Launchers and desktop apps follow it; many full-screen games set their own resolution and won't. Above 100% uses native Retina pixels, so heavy games may run slower.":
"Met à l'échelle le bureau et l'interface Windows, de 100 % à 250 %. Les lanceurs et applications de bureau la suivent ; beaucoup de jeux en plein écran définissent leur propre résolution et l'ignorent. Au-delà de 100 %, le rendu utilise les pixels Retina natifs, donc les jeux exigeants peuvent ralentir.",
"Applying display scaling": "Application de la mise à l'échelle",
+ "Flaky": "Instable",
+ "Known issues: ": "Problèmes connus : ",
"Report a Problem…": "Signaler un problème…",
"Report this problem…": "Signaler ce problème…",
"Duplicate bottle": "Dupliquer la bouteille",
diff --git a/Sources/HighballKit/Recipe.swift b/Sources/HighballKit/Recipe.swift
index d0d0af9..61f6560 100644
--- a/Sources/HighballKit/Recipe.swift
+++ b/Sources/HighballKit/Recipe.swift
@@ -83,6 +83,13 @@ public struct Recipe: Codable, Sendable, Identifiable {
public var tracking: String?
}
+ /// Partially works: installable and worth trying, but with known issues. Unlike `blocked`,
+ /// it does NOT stop `apply()` — the UI just flags it so the launcher grid stops presenting it
+ /// as a clean "Install".
+ public struct Flaky: Codable, Sendable {
+ public var reason: String
+ }
+
public struct Verification: Codable, Sendable {
public var date: String
public var engine: String
@@ -100,6 +107,7 @@ public struct Recipe: Codable, Sendable, Identifiable {
public var knownIssues: [KnownIssue]?
public var lastVerified: Verification?
public var blocked: Blocked?
+ public var flaky: Flaky?
public static func load(from url: URL) throws -> Recipe {
try JSONDecoder.highball.decode(Recipe.self, from: Data(contentsOf: url))