diff options
author | 0neGal <mail@0negal.com> | 2022-01-22 23:25:13 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-01-22 23:25:13 +0100 |
commit | baeae1fa21bf097df164ca48a1bfc3cd58967ac0 (patch) | |
tree | adebc8151c0d70ef83f6e724ddcd6df277139e38 /src | |
parent | 6a785c3a4c41bb7128508c34a1a2af5df12b9f8e (diff) | |
download | Viper-baeae1fa21bf097df164ca48a1bfc3cd58967ac0.tar.gz Viper-baeae1fa21bf097df164ca48a1bfc3cd58967ac0.zip |
fixed checking for linux instead of win32
Diffstat (limited to 'src')
-rw-r--r-- | src/utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.js b/src/utils.js index 50ad240..93326d5 100644 --- a/src/utils.js +++ b/src/utils.js @@ -131,7 +131,7 @@ async function setpath(win) { // Autodetect path // Windows only using powershell and windows registery // Get-Item -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Respawn\Titanfall2\ - if (process.platform == "linux") { + if (process.platform == "win32") { try { let {stdout} = await exec("Get-Item -Path Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\Respawn\\Titanfall2\\", {"shell":"powershell.exe"}); let originPath = stdout.split('\n') |