From 8e96d85d24ab2fa482330e44a8a1bd6ee1458ed6 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Mon, 13 Mar 2017 09:51:01 +0000 Subject: [PATCH] Allow runtime mod to be customized. --- packaging/windows/WindowsLauncher.cs.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/windows/WindowsLauncher.cs.in b/packaging/windows/WindowsLauncher.cs.in index 1c2164c6f3..8231ed2285 100644 --- a/packaging/windows/WindowsLauncher.cs.in +++ b/packaging/windows/WindowsLauncher.cs.in @@ -26,6 +26,7 @@ namespace OpenRA static Process gameProcess; // Constants to be replaced by the wrapper / compilation script + const string ModID = "MOD_ID"; const string DisplayName = "DISPLAY_NAME"; const string FaqUrl = "FAQ_URL"; @@ -38,6 +39,9 @@ namespace OpenRA Directory.SetCurrentDirectory(directory); + if (!string.IsNullOrEmpty(ModID)) + args = args.Append("Game.Mod=" + ModID).ToArray(); + var engineArgs = args .Append("Engine.LaunchPath=" + launcherPath) .Select(arg => "\"" + arg + "\"");