mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
chore: typo
This commit is contained in:
parent
fdd7f753b3
commit
0cdb25e705
@ -10,7 +10,7 @@ import { generateYML } from "../helpers/generate-lutris-yaml";
|
||||
import { getDownloadsPath } from "../helpers/get-downloads-path";
|
||||
import { registerEvent } from "../register-event";
|
||||
|
||||
const executeGameInsaller = (filePath: string) => {
|
||||
const executeGameInstaller = (filePath: string) => {
|
||||
if (process.platform === "win32") {
|
||||
shell.openPath(filePath);
|
||||
return true;
|
||||
@ -45,12 +45,12 @@ const openGameInstaller = async (
|
||||
}
|
||||
|
||||
if (fs.lstatSync(gamePath).isFile()) {
|
||||
return executeGameInsaller(gamePath);
|
||||
return executeGameInstaller(gamePath);
|
||||
}
|
||||
|
||||
const setupPath = path.join(gamePath, "setup.exe");
|
||||
if (fs.existsSync(setupPath)) {
|
||||
return executeGameInsaller(setupPath);
|
||||
return executeGameInstaller(setupPath);
|
||||
}
|
||||
|
||||
const gamePathFileNames = fs.readdirSync(gamePath);
|
||||
@ -59,7 +59,7 @@ const openGameInstaller = async (
|
||||
);
|
||||
|
||||
if (gameAlternativeSetupPath) {
|
||||
return executeGameInsaller(path.join(gamePath, gameAlternativeSetupPath));
|
||||
return executeGameInstaller(path.join(gamePath, gameAlternativeSetupPath));
|
||||
}
|
||||
|
||||
if (spawnSync("which", ["lutris"]).status === 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user