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, );