Fix proton not being invoked
This commit is contained in:
parent
98bdc32ffc
commit
46f8e55d70
1 changed files with 5 additions and 2 deletions
|
@ -15,7 +15,7 @@ class ProtonState extends State<Proton> {
|
|||
Settings settings;
|
||||
ProtonState({required this.settings});
|
||||
|
||||
Future<void> runProton(String command, List<String> args) async {
|
||||
Future<void> runProton(String command, List<String> argx) async {
|
||||
Directory dir =
|
||||
Directory(settings.game_path + Platform.pathSeparator + "pfx");
|
||||
|
||||
|
@ -29,8 +29,11 @@ class ProtonState extends State<Proton> {
|
|||
env["STEAM_COMPAT_DATA_PATH"] = dir.path;
|
||||
|
||||
try {
|
||||
List<String> args = ["run", command];
|
||||
args.addAll(argx);
|
||||
|
||||
ProcessResult res = await Process.run(
|
||||
command, args, // Run arbitrary command with arguments
|
||||
"proton", args, // Run arbitrary command with arguments
|
||||
environment: env,
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue