Skip to content

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

The cloud saves row says the Mac version's saves sync only for the GOG locations resolveMac gives a folder, as the play sync does, and says when none is clearly the game's own.

Gabefd9b8670c976
diff --git a/Sources/HighballApp/GameDetailView.swift b/Sources/HighballApp/GameDetailView.swift
index 77925ec..c67be78 100644
--- a/Sources/HighballApp/GameDetailView.swift
+++ b/Sources/HighballApp/GameDetailView.swift
@@ -17,6 +17,9 @@ struct GameDetailView: View {
/// How this GOG game's saves sync, per version; asked when the page opens.
@State private var cloudSetup: GOGSaves.CloudSetup?
@State private var cloudSetupAsked = false
+ /// The installed Mac build's cloud-save locations Highball syncs: the ones resolveMac gives a
+ /// folder, as the play sync does (gogMacSaveLocations). The others are left alone.
+ @State private var macSyncedSaves: [GOGSaves.Location] = []
@State private var showCloudHelp = false
@State private var loadingDetails = true
@State private var expandedDescription = false
@@ -147,9 +150,15 @@ struct GameDetailView: View {
loadingDetails = false
}
.task(id: "\(item.id)|\(item.installed)|\(item.installedOnMac)|cloud") {
- cloudSetup = nil; cloudSetupAsked = false
+ cloudSetup = nil; cloudSetupAsked = false; macSyncedSaves = []
guard item.source == .gog, item.installedAnywhere else { return }
- cloudSetup = await state.gogCloudSetup(for: item)
+ let setup = await state.gogCloudSetup(for: item)
+ if let setup, let mac = item.gogID.flatMap({ state.gogMacInstalled[$0] }) {
+ macSyncedSaves = await Task.detached {
+ setup.mac.filter { GOGSaves.resolveMac($0.template, installFolder: mac.folder, gameID: mac.id) != nil }
+ }.value
+ }
+ cloudSetup = setup
cloudSetupAsked = true
}
// How much room it takes: the store's estimate before an install, the folders after.
@@ -552,8 +561,11 @@ struct GameDetailView: View {
own: L("The game handles the Windows version's saves; some games sync them with GOG's cloud themselves while comet runs.")))
}
if item.installedOnMac {
- lines.append(line(setup.mac, synced: L("The Mac version's saves sync with GOG's cloud before and after you play."),
- own: L("The game handles the Mac version's saves; some games sync them with GOG's cloud themselves while comet runs.")))
+ // GOG names Mac folders none of which is clearly the game's own: nothing syncs them.
+ lines.append(!setup.mac.isEmpty && macSyncedSaves.isEmpty
+ ? L("GOG names a folder for the Mac version's saves that other apps may share, so Highball does not sync it: the saves stay on this Mac.")
+ : line(macSyncedSaves, synced: L("The Mac version's saves sync with GOG's cloud before and after you play."),
+ own: L("The game handles the Mac version's saves; some games sync them with GOG's cloud themselves while comet runs.")))
}
return lines
}
@@ -589,7 +601,7 @@ struct GameDetailView: View {
.font(.callout).foregroundStyle(.secondary)
Text(L("The game's own sync: some games send their saves to GOG's cloud themselves, through GOG's game kit. With Highball that works while comet runs beside the game, and the game says so when it syncs, as Cyberpunk 2077 does."))
.font(.callout).foregroundStyle(.secondary)
- let folders = (cloudSetup.map { (item.installed ? $0.windows : []) + (item.installedOnMac ? $0.mac : []) } ?? []).map(\.template)
+ let folders = ((cloudSetup.map { item.installed ? $0.windows : [] } ?? []) + (item.installedOnMac ? macSyncedSaves : [])).map(\.template)
if !folders.isEmpty {
Text(L("Folders this game syncs")).font(.caption.weight(.semibold)).padding(.top, 2)
ForEach(folders, id: \.self) { Text(verbatim: $0).font(.caption.monospaced()).textSelection(.enabled) }
diff --git a/Sources/HighballApp/L10n.swift b/Sources/HighballApp/L10n.swift
index 9cc5394..1980c20 100644
--- a/Sources/HighballApp/L10n.swift
+++ b/Sources/HighballApp/L10n.swift
@@ -413,6 +413,8 @@ enum L10n {
"The Mac version's saves sync with GOG's cloud before and after you play.": "Les sauvegardes de la version Mac se synchronisent avec le cloud GOG avant et après chaque partie.",
"The game handles the Mac version's saves; some games sync them with GOG's cloud themselves while comet runs.":
"Le jeu gère les sauvegardes de la version Mac ; certains jeux les synchronisent eux-mêmes avec le cloud GOG quand comet tourne.",
+ "GOG names a folder for the Mac version's saves that other apps may share, so Highball does not sync it: the saves stay on this Mac.":
+ "GOG indique pour les sauvegardes de la version Mac un dossier que d’autres apps peuvent partager, donc Highball ne le synchronise pas : les sauvegardes restent sur ce Mac.",
"How saves sync with GOG": "Comment les sauvegardes se synchronisent avec GOG",
"GOG syncs saves in one of two ways, chosen per game and per version.": "GOG synchronise les sauvegardes de deux façons, selon le jeu et la version.",
"Folder sync: GOG names the folders a game saves in, and Highball copies them to and from GOG's cloud before and after you play, as GOG Galaxy does. When both copies changed, Highball asks which one to keep.":