Skip to content

Commit 9da1f97

Browse files
committed
Fix SDL and Qt5 availability checks in Package.swift
1 parent c162a2c commit 9da1f97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func checkQtInstalled() -> Bool {
246246
do {
247247
try process.run()
248248
process.waitUntilExit()
249-
return true
249+
return process.terminationStatus == 0
250250
} catch {
251251
return false
252252
}
@@ -265,7 +265,7 @@ func checkSDL2Installed() -> Bool {
265265
do {
266266
try process.run()
267267
process.waitUntilExit()
268-
return true
268+
return process.terminationStatus == 0
269269
} catch {
270270
return false
271271
}

0 commit comments

Comments
 (0)