Skip to content

Commit

Permalink
Fix logic error causing Mythic Engine installation prompt when launch…
Browse files Browse the repository at this point in the history
  • Loading branch information
vapidinfinity committed Aug 9, 2024
1 parent 47f99d2 commit a8f78ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mythic/Utilities/Legendary/LegendaryInterface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ final class Legendary {
throw GameDoesNotExistError(game)
}

guard game.platform == .windows && Engine.exists else { throw Engine.NotInstalledError() }
if case .windows = game.platform, !Engine.exists { throw Engine.NotInstalledError() }

guard let bottleURL = game.bottleURL else { throw Wine.BottleDoesNotExistError() } // FIXME: Bottle Revamp
let bottle = try Wine.getBottleObject(url: bottleURL)

Expand Down

0 comments on commit a8f78ce

Please sign in to comment.