Fixed a lot of wrong constants.prefixDir usage due

now it's `constants.prefixDir.get()` function
This commit is contained in:
Observer KRypt0n_ 2021-11-28 21:15:36 +02:00
parent b89eccd863
commit 89c3968513
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA
3 changed files with 7 additions and 7 deletions

View file

@ -295,7 +295,7 @@ $(() => {
cwd: constants.gameDir,
env: {
...process.env,
WINEPREFIX: constants.prefixDir,
WINEPREFIX: constants.prefixDir.get(),
...env, // User-defined variables should be the most important
...LauncherLib.getConfig('env')
}

View file

@ -349,7 +349,7 @@ export default class LauncherLib
cwd: constants.gameDir,
env: {
...process.env,
WINEPREFIX: constants.prefixDir
WINEPREFIX: constants.prefixDir.get()
}
});
@ -362,7 +362,7 @@ export default class LauncherLib
cwd: constants.gameDir,
env: {
...process.env,
WINEPREFIX: constants.prefixDir
WINEPREFIX: constants.prefixDir.get()
}
});
@ -371,7 +371,7 @@ export default class LauncherLib
cwd: constants.gameDir,
env: {
...process.env,
WINEPREFIX: constants.prefixDir
WINEPREFIX: constants.prefixDir.get()
}
});

View file

@ -127,7 +127,7 @@ $(() => {
exec('winetricks', {
env: {
...process.env,
WINEPREFIX: constants.prefixDir
WINEPREFIX: constants.prefixDir.get()
}
});
});
@ -150,7 +150,7 @@ $(() => {
exec('winecfg', {
env: {
...process.env,
WINEPREFIX: constants.prefixDir
WINEPREFIX: constants.prefixDir.get()
}
});
});
@ -572,7 +572,7 @@ $(() => {
cwd: path.join(constants.dxvksDir, 'dxvk-' + dxvk.version),
env: {
...process.env,
WINEPREFIX: constants.prefixDir
WINEPREFIX: constants.prefixDir.get()
}
});