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 | |
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')
-rw-r--r-- | src/modules/is_running.js | 1 | ||||
-rw-r--r-- | src/modules/kill.js | 11 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/modules/is_running.js b/src/modules/is_running.js index 746df5c..1cfdc1d 100644 --- a/src/modules/is_running.js +++ b/src/modules/is_running.js @@ -48,6 +48,7 @@ is_running.game = () => { is_running.origin = () => { return check_processes([ "Origin.exe", + "EADesktop.exe" ]) } 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; |