Skip to content

Commit

Permalink
Fix msync and metal hud not working on games
Browse files Browse the repository at this point in the history
  • Loading branch information
vapidinfinity committed May 2, 2024
1 parent f594bc4 commit 12b7c30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Mythic/Controllers/Legendary/LegendaryInterface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class Legendary {
- game: The game to launch.
- bottle: The
*/
static func launch(game: Mythic.Game, online: Bool) async throws { // TODO: be able to tell when game is runnning
static func launch(game: Mythic.Game, online: Bool) async throws {
guard try Legendary.getInstalledGames().contains(game) else {
log.error("Unable to launch game, not installed or missing") // TODO: add alert in unified alert system
throw GameDoesNotExistError(game)
Expand Down Expand Up @@ -372,7 +372,7 @@ class Legendary {
environmentVariables["WINEMSYNC"] = bottle.settings.msync ? "1" : "0"
}

try await command(arguments: arguments, identifier: "launch\(game.id)") { _ in }
try await command(arguments: arguments, identifier: "launch_\(game.id)", environment: environmentVariables) { _ in }

DispatchQueue.main.async {
GameOperation.shared.launching = nil
Expand Down
2 changes: 1 addition & 1 deletion Mythic/Controllers/LocalGames/LocalGames.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class LocalGames {
"MTL_HUD_ENABLED": bottle.settings.metalHUD ? "1" : "0",
"WINEMSYNC": bottle.settings.msync ? "1" : "0"
]
) { _ in } // TODO: pass task over through launch
) { _ in }

case .none: do { /* TODO: Error */ }
}
Expand Down

0 comments on commit 12b7c30

Please sign in to comment.