diff options
-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; |