Skip to content

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

fix: file picker accepts .bat (drops already did) (#17)

Gauthier Piarrettee17eb25523ba
diff --git a/Sources/HighballApp/AppState.swift b/Sources/HighballApp/AppState.swift
index 3dc52bd..c15cf85 100644
--- a/Sources/HighballApp/AppState.swift
+++ b/Sources/HighballApp/AppState.swift
@@ -41,7 +41,7 @@ final class AppState {
func chooseProgramToRun() {
let panel = NSOpenPanel()
panel.title = L("Choose a Windows program")
- panel.allowedContentTypes = [.exe, .msi].compactMap { $0 }
+ panel.allowedContentTypes = [.exe, .msi, .bat].compactMap { $0 }
panel.allowsMultipleSelection = false
if panel.runModal() == .OK, let url = panel.url { pendingRun = url }
}
@@ -393,4 +393,5 @@ import UniformTypeIdentifiers
extension UTType {
static let exe = UTType(filenameExtension: "exe")
static let msi = UTType(filenameExtension: "msi")
+ static let bat = UTType(filenameExtension: "bat")
}