mirror of
https://github.com/open-goal/launcher.git
synced 2024-10-20 04:57:38 -04:00
lint: formatting
This commit is contained in:
parent
95eb86cfb2
commit
c01078cbdb
|
@ -1,4 +1,4 @@
|
|||
import { invoke } from '@tauri-apps/api/tauri'
|
||||
import { invoke } from "@tauri-apps/api/tauri";
|
||||
|
||||
export async function getHighestSimd() {
|
||||
try {
|
||||
|
|
|
@ -36,18 +36,20 @@ export async function isAVXSupported() {
|
|||
return RequirementStatus.Unknown;
|
||||
}
|
||||
if (highestSIMD.toLowerCase().startsWith("avx")) {
|
||||
return RequirementStatus.Met
|
||||
return RequirementStatus.Met;
|
||||
}
|
||||
return RequirementStatus.Failed;
|
||||
}
|
||||
|
||||
export async function isOpenGLVersionSupported(version) {
|
||||
// TODO - glewinfo not pre-compiled to work on linux yet!
|
||||
if (await os.platform() === "linux" || await os.platform() === "darwin") {
|
||||
if ((await os.platform()) === "linux" || (await os.platform()) === "darwin") {
|
||||
return RequirementStatus.Unknown;
|
||||
}
|
||||
// Otherwise, query for the version
|
||||
let command = Command.sidecar("bin/glewinfo", ["-version", version], { cwd: "bin" });
|
||||
let command = Command.sidecar("bin/glewinfo", ["-version", version], {
|
||||
cwd: "bin",
|
||||
});
|
||||
try {
|
||||
let output = await command.execute();
|
||||
if (output.code === 0) {
|
||||
|
|
Loading…
Reference in a new issue