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
The Engine pickers offer only the newest of each kind to download. They listed every revision of every line, 48 rows on macOS 27, with r2 and r3 under r29 (Hayden on Discord, 2026-10-29). A download row now needs to be the newest of its line and macOS floor, the floor being what sets a line's flavours apart (a D3DMetal 4 revision needs macOS 27, the plain one beside it does not), which makes 4 rows. Installed engines and the environment's own stay listed, and Show older engine revisions in an environment's Advanced settings brings back the rest.
Gauthier Piarrette1d75fa28b28b
diff --git a/Sources/HighballApp/AppState.swift b/Sources/HighballApp/AppState.swiftindex 1e5ee74..8ef2503 100644--- a/Sources/HighballApp/AppState.swift+++ b/Sources/HighballApp/AppState.swift@@ -4222,7 +4222,8 @@ final class AppState {}func offeredEngines(for bottle: Bottle) -> [EngineStore.OfferedEngine] {- EngineStore.offeredEngines(installed: engines, known: Self.knownManifests, current: bottle.settings.engineID)+ EngineStore.offeredEngines(installed: engines, known: Self.knownManifests, current: bottle.settings.engineID,+ allRevisions: UserDefaults.standard.bool(forKey: EngineStore.showOlderRevisionsKey))}/// Moves a bottle to an engine by id, installing it first when it is only known from adiff --git a/Sources/HighballApp/BottleView.swift b/Sources/HighballApp/BottleView.swiftindex cdafe29..d7cba4c 100644--- a/Sources/HighballApp/BottleView.swift+++ b/Sources/HighballApp/BottleView.swift@@ -311,6 +311,7 @@ struct EnvironmentSettingsPage: View {// Settings' TabView owns the window toolbar; its generated navigation arrow does not pop.var showsInlineBack = false@State private var selectedSection: EnvironmentSettingsSection = .graphics+ @AppStorage(EngineStore.showOlderRevisionsKey) private var showOlderRevisions = false@State private var confirmDelete = false@State private var showFrameGenInfo = false@@ -576,6 +577,7 @@ struct EnvironmentSettingsPage: View {}}.disabled(state.busy)+ Toggle(L("Show older engine revisions"), isOn: $showOlderRevisions)Text(L("Environments never change engine on their own. Switching re-runs the Windows setup when the Wine build differs; switching back is the same step. An engine marked download is fetched first.")).font(.caption).foregroundStyle(.secondary)}diff --git a/Sources/HighballApp/L10n.swift b/Sources/HighballApp/L10n.swiftindex 0d60426..0a09a03 100644--- a/Sources/HighballApp/L10n.swift+++ b/Sources/HighballApp/L10n.swift@@ -683,6 +683,7 @@ enum L10n {"Remove %@?": "Supprimer %@ ?","Remove": "Supprimer","Engines no environment uses": "Moteurs qu'aucun environnement n'utilise",+ "Show older engine revisions": "Afficher les anciennes révisions des moteurs","Remove…": "Supprimer…","Removing one frees its disk space. If a game asks for it again later, Highball downloads it then.": "En supprimer un libère son espace disque. Si un jeu le demande plus tard, Highball le télécharge à nouveau.","Removing engine %@": "Suppression du moteur %@",diff --git a/Sources/HighballKit/EngineStore.swift b/Sources/HighballKit/EngineStore.swiftindex 7ea786c..d34108c 100644--- a/Sources/HighballKit/EngineStore.swift+++ b/Sources/HighballKit/EngineStore.swift@@ -191,6 +191,9 @@ public struct EngineStore: Sendable {/// gone) keeps every engine offered, as before.public static func sameArch(current: String?, target: String) -> Bool { current == nil || current == target }+ /// The UserDefaults key behind Show older engine revisions in an environment's Advanced settings.+ public static let showOlderRevisionsKey = "showOlderEngineRevisions"+/// One row per engine the app can put a bottle on: every installed engine, then every/// bundled manifest that is not installed yet (it downloads when chosen). Newest first/// within each group, by numeric-aware id order. When the bottle's own engine is in@@ -211,8 +214,14 @@ public struct EngineStore: Sendable {/// "name · id" the game page shows when only one engine is offered.public var label: String { displayName.map { "\($0) · \(id)" } ?? id }}+ ///+ /// A download row is only worth offering when it is the newest of its kind: every revision of a line is+ /// cumulative, so r3 under r29 is noise, and the pickers had grown to 48 rows on macOS 27 (Hayden on Discord,+ /// 2026-10-29). `allRevisions` false keeps, per line and macOS floor, the newest revision among those installed+ /// and offered, the floor being what sets a line's flavours apart (a D3DMetal 4 revision needs macOS 27, the+ /// plain one beside it does not). Installed engines and the bottle's own always stay listed.public static func offeredEngines(installed: [InstalledEngine], known: [EngineManifest], current: String? = nil,- macOS: String = EngineManifest.currentMacOS) -> [OfferedEngine] {+ macOS: String = EngineManifest.currentMacOS, allRevisions: Bool = true) -> [OfferedEngine] {let newestFirst: (String, String) -> Bool = { $0.compare($1, options: .numeric) == .orderedDescending }let ids = Set(installed.map(\.id))let arch = installed.first { $0.id == current }?.manifest.arch ?? known.first { $0.id == current }?.arch@@ -220,7 +229,14 @@ public struct EngineStore: Sendable {.sorted { newestFirst($0.id, $1.id) }.map { OfferedEngine(id: $0.id, installed: true, displayName: $0.manifest.displayName) }// A manifest with a macOS floor above this Mac is not offered: it would download and// then run untested (r6's D3DMetal was measured on 27 only). Installed engines stay listed.+ let flavour: (EngineManifest) -> String = { "\(EngineManifest.line(of: $0.id) ?? $0.id)|\($0.minMacOS)" }+ var newestOfFlavour: [String: String] = [:]+ for m in installed.map(\.manifest) + known where m.runs(onMacOS: macOS) {+ if let seen = newestOfFlavour[flavour(m)], !newestFirst(m.id, seen) { continue }+ newestOfFlavour[flavour(m)] = m.id+ }let more = known.filter { !ids.contains($0.id) && $0.runs(onMacOS: macOS) && sameArch(current: arch, target: $0.arch) }+ .filter { allRevisions || newestOfFlavour[flavour($0)] == $0.id }.sorted { newestFirst($0.id, $1.id) }.map { OfferedEngine(id: $0.id, installed: false, displayName: $0.displayName) }var rows = have + morediff --git a/Tests/HighballKitTests/RegressionTests.swift b/Tests/HighballKitTests/RegressionTests.swiftindex 1d3af1c..874e755 100644--- a/Tests/HighballKitTests/RegressionTests.swift+++ b/Tests/HighballKitTests/RegressionTests.swift@@ -1091,6 +1091,30 @@ extension RegressionTests {XCTAssertEqual(withMissing.last?.label, "x64-gone-r0", "a missing engine has no manifest, so its row is the id")}+ // Hayden's picker of 48 rows (Discord, 2026-10-29): only the newest of each line and macOS floor is offered+ // to download, unless the player asks for the older revisions.+ func testPickersOfferOnlyTheNewestOfEachFlavourToDownload() throws {+ func manifest(_ id: String, floor: String = "14.0") throws -> EngineManifest {+ let json = #"{"id":"\#(id)","displayName":"e","arch":"x86_64","minMacOS":"\#(floor)","components":{}}"#+ return try JSONDecoder().decode(EngineManifest.self, from: Data(json.utf8))+ }+ let known = [try manifest("x64-a-r2"), try manifest("x64-a-r9"), try manifest("x64-a-r10"),+ try manifest("x64-a-r8", floor: "27.0"), try manifest("x64-a-r11", floor: "27.0"),+ try manifest("x64-b-r3")]+ func ids(installed: [InstalledEngine] = [], current: String? = nil, macOS: String = "27.0", all: Bool = false) -> [String] {+ EngineStore.offeredEngines(installed: installed, known: known, current: current, macOS: macOS, allRevisions: all).map(\.id)+ }+ XCTAssertEqual(ids(), ["x64-b-r3", "x64-a-r11", "x64-a-r10"])+ XCTAssertEqual(ids(macOS: "26.6"), ["x64-b-r3", "x64-a-r10"], "a revision this Mac cannot run does not hide the one it can")+ XCTAssertEqual(ids(all: true), ["x64-b-r3", "x64-a-r11", "x64-a-r10", "x64-a-r9", "x64-a-r8", "x64-a-r2"])+ // An old engine a bottle runs stays listed, and the newest of its flavour already installed offers nothing older.+ let r2 = InstalledEngine(manifest: try manifest("x64-a-r2"), root: URL(fileURLWithPath: "/tmp/r2"))+ XCTAssertEqual(ids(installed: [r2], current: "x64-a-r2"), ["x64-a-r2", "x64-b-r3", "x64-a-r11", "x64-a-r10"])+ let r10 = InstalledEngine(manifest: try manifest("x64-a-r10"), root: URL(fileURLWithPath: "/tmp/r10"))+ XCTAssertEqual(ids(installed: [r10]), ["x64-a-r10", "x64-b-r3", "x64-a-r11"])+ XCTAssertEqual(ids(installed: [], current: "x64-gone-r1"), ["x64-b-r3", "x64-a-r11", "x64-a-r10", "x64-gone-r1"])+ }+func testEnginesAboveTheMacOSFloorAreNotOffered() throws {func manifest(_ id: String, floor: String) throws -> EngineManifest {let json = #"{"id":"\#(id)","displayName":"e","arch":"x86_64","minMacOS":"\#(floor)","components":{}}"#