From 07590bb42fa6b51e65ec164604c1d14238ee0441 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Tue, 11 Apr 2023 21:18:58 +0200 Subject: 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. --- src/modules/is_running.js | 1 + src/modules/kill.js | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3