Skip to content

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

Merge branch 'feat/game-sizes' into feat/mac-badges

Gabe7f6462c13d08
diff --cc Sources/HighballApp/L10n.swift
index 9b4c75e,39b75e6..cc2602c
--- a/Sources/HighballApp/L10n.swift
+++ b/Sources/HighballApp/L10n.swift
@@@ -438,7 -430,24 +438,25 @@@ enum L10n
"Uses %@ of space": "Occupe %@",
"Saves": "Sauvegardes",
"Steam Cloud saves": "Sauvegardes Steam Cloud",
+ "Games with a native Mac version, which runs without Wine.": "Les jeux qui ont une version Mac native, qui tourne sans Wine.",
+ "Installed by": "Installé par",
+ "All Steam accounts": "Tous les comptes Steam",
+ "Steam games of one account on this Mac: the one that installed them, or was signed in when they appeared. A game with no sign of whose it is shows under every account.":
+ "Les jeux Steam d’un seul compte sur ce Mac : celui qui les a installés, ou qui était connecté quand ils sont apparus. Un jeu sans indice du compte apparaît sous chaque compte.",
+ "Account": "Compte",
+ "set by you": "choisi par vous",
+ "installed it": "l’a installé",
+ "signed in when it was added": "connecté quand il a été ajouté",
+ "Any account": "N’importe quel compte",
+ "no sign of whose it is": "aucun indice du compte",
+ "Whose Steam game this is. Highball goes by who installed it and who was signed in when it appeared; pick one to set it.":
+ "À qui est ce jeu Steam. Highball se fie à qui l’a installé et à qui était connecté quand il est apparu ; choisissez un compte pour le fixer.",
+ "Every account here": "Tous les comptes de ce Mac",
+ "Let Highball guess": "Laisser Highball deviner",
+ "Steam is signed in as %@. That account may not have access to this game.":
+ "Steam est connecté au compte %@. Ce compte n’a peut-être pas accès à ce jeu.",
+ "Steam last signed in as %@. That account may not have access to this game.":
+ "Steam s’est connecté en dernier au compte %@. Ce compte n’a peut-être pas accès à ce jeu.",
"Last played": "Dernière partie",
"Windows program": "Programme Windows",
"Choose cover image…": "Choisir une image de couverture…",
diff --cc Sources/HighballApp/LibraryView.swift
index 8fecc22,416b89b..5452367
--- a/Sources/HighballApp/LibraryView.swift
+++ b/Sources/HighballApp/LibraryView.swift
@@@ -22,7 -22,9 +22,10 @@@ struct LibraryView: View
/// that read as a bug (highball#257).
@AppStorage("library.installedOnly") private var installedOnly = false
@AppStorage("library.verifiedOnly") private var verifiedOnly = false
+ /// Steam games of one account only, under the Steam filter: "" all, else a 64-bit Steam ID
+ /// (AppState.steamOwners).
+ @AppStorage("library.steamAccount") private var steamAccount = ""
+ @AppStorage("library.macOnly") private var macOnly = false
/// Shows the games the player hid, and only them, so one can be brought back (highball#445).
/// Not kept across starts: a library that opened on its hidden games alone would look emptied.
@State private var showingHidden = false
@@@ -39,11 -41,13 +42,15 @@@
}
private var filtered: [LibraryItem] {
- shown.filter { item in
+ let account = activeSteamAccount // once, not per item
+ return shown.filter { item in
if let sourceFilter, item.source != sourceFilter { return false }
if installedOnly && !item.installedAnywhere { return false }
+ // A game with no sign of whose it is is every account's (`.unknown`), so it stays, as
+ // does one Highball cannot place (Steam for Mac's, or before the accounts are read).
+ if let account, let owners = state.steamOwners(for: item), !owners.accounts.contains(account) { return false }
+ // A native Mac version from any store: Steam's (MacSteamBuild), or one GOG or Epic lists.
+ if macOnly && state.macSteamBuild(for: item) == nil && !item.macListed && !item.installedOnMac { return false }
if verifiedOnly {
guard state.gameDB.entry(for: item)?.status == "verified-local" else { return false }
}