From 8dadb08cd2af32af6bbb9747cef203f54fd208f0 Mon Sep 17 00:00:00 2001 From: Maroxy Date: Sat, 23 Oct 2021 13:09:35 +0200 Subject: [PATCH] fix patch --- src/ts/Genshinlib.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ts/Genshinlib.ts b/src/ts/Genshinlib.ts index 8c4f474..7c19d53 100644 --- a/src/ts/Genshinlib.ts +++ b/src/ts/Genshinlib.ts @@ -386,7 +386,8 @@ export class Genshinlib let patcherProcess = exec(`yes yes | ${path.join(patchDir, 'patch.sh')}`, { cwd: this.gameDir, env: { - ...process.env + ...process.env, + WINEPREFIX: this.prefixDir } }); @@ -397,7 +398,8 @@ export class Genshinlib let patcherAntiCrashProcess = exec(`yes | ${path.join(patchDir, 'patch_anti_logincrash.sh')}`, { cwd: this.gameDir, env: { - ...process.env + ...process.env, + WINEPREFIX: this.prefixDir } });