From 46f8e55d7020f21ebb5d5304730328f626be183a Mon Sep 17 00:00:00 2001 From: Zontreck Date: Fri, 3 Nov 2023 01:46:41 -0700 Subject: [PATCH] Fix proton not being invoked --- lib/proton.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/proton.dart b/lib/proton.dart index 2ae5e01..580f633 100644 --- a/lib/proton.dart +++ b/lib/proton.dart @@ -15,7 +15,7 @@ class ProtonState extends State { Settings settings; ProtonState({required this.settings}); - Future runProton(String command, List args) async { + Future runProton(String command, List argx) async { Directory dir = Directory(settings.game_path + Platform.pathSeparator + "pfx"); @@ -29,8 +29,11 @@ class ProtonState extends State { env["STEAM_COMPAT_DATA_PATH"] = dir.path; try { + List 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, );