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
One build at a time: the Windows Play stays off while the GOG Mac build Highball started runs, and Play refuses it, as Play on Mac refuses while the Windows session runs
Gabe7dee1edccaff
diff --git a/Sources/HighballApp/AppState.swift b/Sources/HighballApp/AppState.swiftindex 9656117..2f2ac45 100644--- a/Sources/HighballApp/AppState.swift+++ b/Sources/HighballApp/AppState.swift@@ -634,6 +634,12 @@ final class AppState {/// it the native build goes first.func play(_ item: LibraryItem, renderer: Renderer? = nil, windowsBuild: Bool = false) {if prefersMacBuild(item), renderer == nil, !windowsBuild { playOnMac(item); return }+ // One build at a time: the Mac build Highball started is still running, and both would+ // sign in to the same store client and upload the same saves.+ if macGameProcesses[item.id] != nil {+ fail(HighballError.failed(String(format: L("%@ is running as its Mac version. Quit it first."), item.title)))+ return+ }guard let bottleName = item.bottleName,let found = bottles.first(where: { $0.name == bottleName }) else { return }var bottle = found@@ -3991,6 +3997,11 @@ final class AppState {fail(HighballError.failed("\(item.title) is already running."))return}+ // Nor beside the Windows build's session: one build at a time.+ if runningSessions.contains(where: { $0.libraryID == item.id }) {+ fail(HighballError.failed(String(format: L("%@ is running as its Windows version. Quit it first."), item.title)))+ return+ }let game = mac.asInstalledGamelet store = gogStorelet useComet = gogSignedIn && gogSettings.cometOff[id] == nildiff --git a/Sources/HighballApp/GameDetailView.swift b/Sources/HighballApp/GameDetailView.swiftindex 3ef6e23..db5b1d3 100644--- a/Sources/HighballApp/GameDetailView.swift+++ b/Sources/HighballApp/GameDetailView.swift@@ -694,8 +694,9 @@ struct GameDetailView: View {.buttonStyle(.borderedProminent).controlSize(.large).tint(HB.amber).disabled(state.macPlayUnavailable(item))if item.installed {+ // Not while the Mac build Highball started runs: one build at a time.Button(L("Play the Windows version")) { commitTypedArguments(); state.play(item, windowsBuild: true) }- .controlSize(.large).disabled(state.busy || blocked)+ .controlSize(.large).disabled(state.busy || blocked || state.isRunningNow(item))} else {Text(item.source == .steam ? L("Starts through Steam for Mac.") : L("Opens the Mac version, without Wine.")).font(.callout).foregroundStyle(.secondary)@@ -705,7 +706,7 @@ struct GameDetailView: View {primaryActionLabel(L("Play"), symbol: "play.fill")}.buttonStyle(.borderedProminent).controlSize(.large).tint(HB.amber)- .disabled(state.busy || blocked)+ .disabled(state.busy || blocked || state.isRunningNow(item))if item.installedOnMac {// The row put the Windows build first (a Mac build missing content); the Mac one stays a click away.Button(L("Play on Mac")) { commitTypedArguments(); state.playOnMac(item) }.controlSize(.large)diff --git a/Sources/HighballApp/L10n.swift b/Sources/HighballApp/L10n.swiftindex 2108424..2db326c 100644--- a/Sources/HighballApp/L10n.swift+++ b/Sources/HighballApp/L10n.swift@@ -466,6 +466,8 @@ enum L10n {"Highball could not tell which folder is this game's alone, so it leaves the files where they are.":"Highball ne sait pas quel dossier appartient à ce seul jeu, donc il laisse les fichiers où ils sont.","Quit %@ first: it is running.": "Quittez d’abord %@ : le jeu est en cours d’exécution.",+ "%@ is running as its Mac version. Quit it first.": "%@ est lancé dans sa version Mac. Quittez-le d’abord.",+ "%@ is running as its Windows version. Quit it first.": "%@ est lancé dans sa version Windows. Quittez-le d’abord.","Built for Apple silicon: runs natively.": "Conçue pour Apple silicon : tourne en natif.","Built for Intel Macs: runs through Rosetta.": "Conçue pour les Mac Intel : tourne via Rosetta.","A 32-bit build, which current macOS can't run. Play the Windows version instead.":