diff options
author | 0neGal <mail@0negal.com> | 2023-04-16 17:12:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-16 17:12:23 +0200 |
commit | 79a478ad3a1bf9dea343e53281b70c56c50838ec (patch) | |
tree | 655031f93c3bab2d72a993a12420168d964fb667 /src/modules/kill.js | |
parent | fb50dbf3694fb0e02da2d203f6247c393c694023 (diff) | |
parent | 94d9f9238befbc8cb61721e91b6e7f4a2b364701 (diff) | |
download | Viper-79a478ad3a1bf9dea343e53281b70c56c50838ec.tar.gz Viper-79a478ad3a1bf9dea343e53281b70c56c50838ec.zip |
Merge pull request #183 from 0neGal/eadesktop-support
feat: Support EA Desktop better
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; |