diff options
author | 0neGal <mail@0negal.com> | 2023-04-11 21:18:58 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2023-04-11 21:18:58 +0200 |
commit | 07590bb42fa6b51e65ec164604c1d14238ee0441 (patch) | |
tree | 519439d509cf956d98d281e0ac61ae700271091c /src/modules/kill.js | |
parent | fb50dbf3694fb0e02da2d203f6247c393c694023 (diff) | |
download | Viper-07590bb42fa6b51e65ec164604c1d14238ee0441.tar.gz Viper-07590bb42fa6b51e65ec164604c1d14238ee0441.zip |
functional support for EADesktop.exe
EADesktop.exe is now killed alongside Viper when toggled in settings,
alongside this, it also now contributes towards whether "Origin" is
detected as running.
Diffstat (limited to 'src/modules/kill.js')
-rw-r--r-- | src/modules/kill.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/modules/kill.js b/src/modules/kill.js index 7482bed..e0e93fc 100644 --- a/src/modules/kill.js +++ b/src/modules/kill.js @@ -20,8 +20,15 @@ async function kill(process_name) { kill.process = kill; -kill.origin = () => { - return kill("Origin.exe"); +kill.origin = async () => { + let origin = await kill("Origin.exe"); + let eadesktop = await kill("EADesktop.exe"); + + if (origin || eadesktop) { + return true; + } + + return false; } module.exports = kill; |