From baeae1fa21bf097df164ca48a1bfc3cd58967ac0 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Sat, 22 Jan 2022 23:25:13 +0100 Subject: fixed checking for linux instead of win32 --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils.js') 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') -- cgit v1.2.3