diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 060f3f95f..eb1b9b181 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,7 +58,7 @@ jobs: with: node-version: 24 cache: npm - + - name: Install Dependencies run: npm ci diff --git a/src/main/GameReader.ts b/src/main/GameReader.ts index 32981fba5..742c244b1 100644 --- a/src/main/GameReader.ts +++ b/src/main/GameReader.ts @@ -97,7 +97,9 @@ export default class GameReader { this.pid = processOpen.th32ProcessID; this.amongUs = openProcess(processOpen.th32ProcessID); this.gameAssembly = findModule('GameAssembly.dll', this.amongUs.th32ProcessID); - this.gamePath = getProcessPath(this.amongUs.handle); + this.gamePath = this.is_linux + ? `/proc/${this.pid}/cwd${getProcessPath(this.amongUs.handle)}` + : getProcessPath(this.amongUs.handle); this.loadedMod = this.getInstalledMods(this.gamePath); await this.initializeoffsets(); this.sendIPC(IpcRendererMessages.NOTIFY_GAME_OPENED, true);