diff --git a/src/main/GameReader.ts b/src/main/GameReader.ts index 89a25f5f..3638a6ab 100644 --- a/src/main/GameReader.ts +++ b/src/main/GameReader.ts @@ -1,6 +1,7 @@ import { DataType, findModule, + getProcesses, ModuleObject, openProcess, ProcessObject, @@ -57,10 +58,9 @@ export default class GameReader { gameCode = 'MENU'; checkProcessOpen(): void { - // const processOpen = getProcesses().find( - // (p) => p.szExeFile === 'Among Us.exe' - // ); - const processOpen = true; + const processOpen = getProcesses().find( + (p) => p.szExeFile === 'Among Us.exe' + ); if (!this.amongUs && processOpen) { try { this.amongUs = openProcess('Among Us.exe'); diff --git a/yarn.lock b/yarn.lock index d724e9af..bd593f33 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7268,7 +7268,7 @@ memory-fs@^0.5.0: "memoryjs@https://github.com/TheGreatMcPain/memoryjs.git": version "0.0.1" - resolved "https://github.com/TheGreatMcPain/memoryjs.git#033b8750c7186f92f8c1bcec7c93be4e2fa71606" + resolved "https://github.com/TheGreatMcPain/memoryjs.git#317193aab5d075f0a5ab4a5b5bea528eeab14c7b" dependencies: bindings "^1.5.0" concentrate "^0.2.3"