mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
chore: typo
This commit is contained in:
parent
fdd7f753b3
commit
0cdb25e705
1 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ import { generateYML } from "../helpers/generate-lutris-yaml";
|
||||||
import { getDownloadsPath } from "../helpers/get-downloads-path";
|
import { getDownloadsPath } from "../helpers/get-downloads-path";
|
||||||
import { registerEvent } from "../register-event";
|
import { registerEvent } from "../register-event";
|
||||||
|
|
||||||
const executeGameInsaller = (filePath: string) => {
|
const executeGameInstaller = (filePath: string) => {
|
||||||
if (process.platform === "win32") {
|
if (process.platform === "win32") {
|
||||||
shell.openPath(filePath);
|
shell.openPath(filePath);
|
||||||
return true;
|
return true;
|
||||||
|
@ -45,12 +45,12 @@ const openGameInstaller = async (
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fs.lstatSync(gamePath).isFile()) {
|
if (fs.lstatSync(gamePath).isFile()) {
|
||||||
return executeGameInsaller(gamePath);
|
return executeGameInstaller(gamePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
const setupPath = path.join(gamePath, "setup.exe");
|
const setupPath = path.join(gamePath, "setup.exe");
|
||||||
if (fs.existsSync(setupPath)) {
|
if (fs.existsSync(setupPath)) {
|
||||||
return executeGameInsaller(setupPath);
|
return executeGameInstaller(setupPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
const gamePathFileNames = fs.readdirSync(gamePath);
|
const gamePathFileNames = fs.readdirSync(gamePath);
|
||||||
|
@ -59,7 +59,7 @@ const openGameInstaller = async (
|
||||||
);
|
);
|
||||||
|
|
||||||
if (gameAlternativeSetupPath) {
|
if (gameAlternativeSetupPath) {
|
||||||
return executeGameInsaller(path.join(gamePath, gameAlternativeSetupPath));
|
return executeGameInstaller(path.join(gamePath, gameAlternativeSetupPath));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spawnSync("which", ["lutris"]).status === 0) {
|
if (spawnSync("which", ["lutris"]).status === 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue