aboutsummaryrefslogtreecommitdiff
path: root/src/utils.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-01-22 23:25:13 +0100
committer0neGal <mail@0negal.com>2022-01-22 23:25:13 +0100
commitbaeae1fa21bf097df164ca48a1bfc3cd58967ac0 (patch)
treeadebc8151c0d70ef83f6e724ddcd6df277139e38 /src/utils.js
parent6a785c3a4c41bb7128508c34a1a2af5df12b9f8e (diff)
downloadViper-baeae1fa21bf097df164ca48a1bfc3cd58967ac0.tar.gz
Viper-baeae1fa21bf097df164ca48a1bfc3cd58967ac0.zip
fixed checking for linux instead of win32
Diffstat (limited to 'src/utils.js')
-rw-r--r--src/utils.js2
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')