Skip to content

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

No background size checks: a game's page asks the store when it opens, and the week-long cache keeps the answer.

Gabee7beadb41d50
diff --git a/Sources/HighballApp/AppState.swift b/Sources/HighballApp/AppState.swift
index fd342a3..c63dccf 100644
--- a/Sources/HighballApp/AppState.swift
+++ b/Sources/HighballApp/AppState.swift
@@ -307,7 +307,6 @@ final class AppState {
sortLibraryByDisplayTitle()
if let deferred = deferredPlayLink { resolvePlayLink(deferred.request) }
refreshMacFlags()
- if sizePrefetch == nil, libraryItems.contains(where: { $0.source == .gog || $0.source == .epic }) { prefetchDownloadSizes() }
}
// MARK: Whose Steam games
@@ -4318,29 +4317,6 @@ final class AppState {
item.installedOnMac || (item.source == .steam && macSteamBuild(for: item) != nil)
}
- 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.