Skip to content

Commit

Permalink
Fix bottles not showing in the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vapidinfinity committed May 23, 2024
1 parent 6d3890a commit 90c7601
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Mythic/Utilities/Wine/WineInterface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ final class Wine { // TODO: https://forum.winehq.org/viewtopic.php?t=15416
}
}()

static var bottles: [Bottle]? {
return nil // TODO: wineinterfaceext line 65
}

// MARK: - All Bottles Variable
static var allBottles: [String: Bottle]? {
get {
Expand Down Expand Up @@ -89,7 +93,7 @@ final class Wine { // TODO: https://forum.winehq.org/viewtopic.php?t=15416
}

static var defaultBottleSettings: BottleSettings {
get { return defaults.object(forKey: "defaultBottleSettings") as? BottleSettings ?? .init(metalHUD: false, msync: true, retinaMode: true, windowsVersion: .win11) }
get { return defaults.object(forKey: "defaultBottleSettings") as? BottleSettings ?? .init(metalHUD: false, msync: true, retinaMode: true) }
set { defaults.set(newValue, forKey: "defaultBottleSettings") }
}

Expand Down
3 changes: 2 additions & 1 deletion Mythic/Utilities/Wine/WineInterfaceExt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ extension Wine {
}

struct Bottle: Codable, Hashable {
// var name: String // TODO: TODO
var url: URL
var settings: BottleSettings
var busy: Bool
Expand All @@ -71,7 +72,7 @@ extension Wine {
var metalHUD: Bool
var msync: Bool
var retinaMode: Bool
var windowsVersion: WindowsVersion
// var windowsVersion: WindowsVersion // TODO: TODO
}

enum WindowsVersion: String, Codable {
Expand Down

0 comments on commit 90c7601

Please sign in to comment.