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
Merge branch 'feat/game-sizes' into feat/mac-badges
Gabe330a94b32e33
diff --cc Sources/HighballApp/AppState.swiftindex 7e3df51,c63dccf..f7b5c24--- a/Sources/HighballApp/AppState.swift+++ b/Sources/HighballApp/AppState.swift@@@ -4305,34 -4312,11 +4312,11 @@@ final class AppState(downloadEstimatesFetched[Self.estimateKey(item, mac: mac)] ?? .distantPast) < Date().addingTimeInterval(-86_400)}- /// A native Mac version the store offers: Steam's (MacSteamBuild).+ /// A native Mac version the store offers: Steam's (MacSteamBuild), or one GOG or Epic lists.func offersMacVersion(_ item: LibraryItem) -> Bool {- item.installedOnMac || (item.source == .steam && macSteamBuild(for: item) != nil)+ item.installedOnMac || (item.source == .steam ? macSteamBuild(for: item) != nil : item.macListed)}- private var sizePrefetch: Task<Void, Never>?-- /// Once a session, in the background: the sizes of GOG and Epic games not installed yet, so a- /// page has them before it is opened. One store question at a time (each takes seconds and- /// holds the GOG sign-in file), none while a game runs or a task holds the progress bar, and- /// none for sizes saved this week. Steam needs none: its sizes are read from disk at once.- private func prefetchDownloadSizes() {- sizePrefetch = Task { [weak self] in- try? await Task.sleep(for: .seconds(30)) // after the libraries have come in- guard let self else { return }- for item in libraryItems where !item.installed && (item.source == .gog || item.source == .epic) {- for mac in [false] + (offersMacVersion(item) && !item.installedOnMac ? [true] : []) where savedEstimate(for: item, mac: mac) == nil {- while busy || !runningSessions.isEmpty {- try? await Task.sleep(for: .seconds(30))- if Task.isCancelled { return }- }- if Task.isCancelled { return }- _ = await downloadEstimate(for: item, mac: mac)- }- }- }- }-/// An installed game's folder and saves as they are on disk now.struct InstalledSizes: Equatable {/// The Windows build's folder (or a program's); nil for Steam, whose own record the page shows.