Skip to content

Commit

Permalink
Update memoryjs and re-enable getProcesses code.
Browse files Browse the repository at this point in the history
I've implemented getProcesses in my fork of memoryjs.

CrewLink can now be launched before launching Among Us, and should
continue to work even if the game restarts.
  • Loading branch information
TheGreatMcPain committed Feb 9, 2021
1 parent 7201564 commit 0b087a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main/GameReader.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
DataType,
findModule,
getProcesses,
ModuleObject,
openProcess,
ProcessObject,
Expand Down Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0b087a8

Please sign in to comment.