From eb4bebe12a381fc1ff8b24ff2a08a648065006f8 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 8 Dec 2023 13:37:12 +0100 Subject: [PATCH] added the ability to pass arguments to the cake script --- build.cake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.cake b/build.cake index 3908f49..ed3373e 100644 --- a/build.cake +++ b/build.cake @@ -4,6 +4,7 @@ using System.Threading; var target = Argument("target", "Run"); var config = Argument("configuration", "Release"); +var args = Argument("args", ""); var tinyLifeDir = $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}/Tiny Life"; @@ -29,7 +30,7 @@ Task("Run").IsDependentOn("CopyToMods").Does(() => { // start the tiny life process var exeDir = System.IO.File.ReadAllText($"{tinyLifeDir}/GameDir"); var process = Process.Start(new ProcessStartInfo($"{exeDir}/Tiny Life") { - Arguments = "-v --skip-splash --skip-preloads --debug-saves --ansi", + Arguments = $"-v --skip-splash --skip-preloads --debug-saves --ansi {args}", CreateNoWindow = true });