Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit
Swift apple-silicond3dmetaldxmtdxvkgame-porting-toolkitgptkmac-gamingmacosmetalfxrosetta-2steamsteam-playwinewinecx
feat(runners): make WineCX 11.17 the default tool for unmapped games
raymondchins139082d13024
diff --git a/app/Sources/NotProtonApp/Model/SupportedRunner.swift b/app/Sources/NotProtonApp/Model/SupportedRunner.swiftindex 32be18b..15354d9 100644--- a/app/Sources/NotProtonApp/Model/SupportedRunner.swift+++ b/app/Sources/NotProtonApp/Model/SupportedRunner.swift@@ -97,8 +97,8 @@ enum SupportedRunners {// First entry is what windows-only games get when Steam has no mapping.static let toolPreference = [legacyToolName, "notproton-fex", "notproton-fex-rosetta", "notproton-preview",- "notproton-fex-41069", "notproton-fex-rosetta-41069", "notproton-preview-41069", "notproton-26.3", "notproton-winecx",- "notproton-winecx-11.17", "notproton-winehq",+ "notproton-fex-41069", "notproton-fex-rosetta-41069", "notproton-preview-41069", "notproton-26.3", "notproton-winecx-11.17",+ "notproton-winecx", "notproton-winehq",]static let legacyToolName = "notproton"diff --git a/app/Tests/NotProtonAppTests/FreeEngineWinecxTests.swift b/app/Tests/NotProtonAppTests/FreeEngineWinecxTests.swiftindex a96a667..8f71de9 100644--- a/app/Tests/NotProtonAppTests/FreeEngineWinecxTests.swift+++ b/app/Tests/NotProtonAppTests/FreeEngineWinecxTests.swift@@ -39,10 +39,11 @@ struct FreeEngineWinecxTests {let previous = FreeEngineWinecx.previous.runner// Installing 11.17 adds a tool and never moves notproton-winecx, which every- // existing prefix's build record ties to winecx-11.15.+ // existing prefix's build record ties to winecx-11.15. 11.17 lists first, so it is+ // what games without a mapping get.let both = SupportedRunners.tools(for: [current, previous])- #expect(both.map(\.name) == ["notproton-winecx", "notproton-winecx-11.17"])- #expect(both.map(\.build) == ["winecx-11.15", "winecx-11.17"])+ #expect(both.map(\.name) == ["notproton-winecx-11.17", "notproton-winecx"])+ #expect(both.map(\.build) == ["winecx-11.17", "winecx-11.15"])#expect(SupportedRunners.tools(for: [previous]).map(\.build) == ["winecx-11.15"])#expect(SupportedRunners.tools(for: [current]).map(\.name) == ["notproton-winecx-11.17"])}