mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-03-08 09:07:57 +03:00
Added proper wine prefix usage in game starting
This commit is contained in:
parent
123db17f57
commit
bd41bd1f46
2 changed files with 6 additions and 2 deletions
|
@ -107,7 +107,7 @@ class Paths
|
|||
*
|
||||
* @default "~/.local/share/anime-game-launcher/game/drive_c/Program Files/[An Anime Game]"
|
||||
*
|
||||
* @returns "[constants.prefix.current]/drive_c/Program Files/[An Anime Game]"
|
||||
* @returns "[constants.paths.prefix.current]/drive_c/Program Files/[An Anime Game]"
|
||||
*/
|
||||
public static get gameDir(): Promise<string>
|
||||
{
|
||||
|
|
|
@ -105,7 +105,11 @@ export default (launcher: Launcher): Promise<void> => {
|
|||
const startTime = Date.now();
|
||||
|
||||
const process = await Process.run(command, {
|
||||
env: env,
|
||||
env: {
|
||||
...env,
|
||||
|
||||
WINEPREFIX: await constants.paths.prefix.current
|
||||
},
|
||||
cwd: await constants.paths.gameDir
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue