Allow runtime mod to be customized.
This commit is contained in:
@@ -26,6 +26,7 @@ namespace OpenRA
|
|||||||
static Process gameProcess;
|
static Process gameProcess;
|
||||||
|
|
||||||
// Constants to be replaced by the wrapper / compilation script
|
// Constants to be replaced by the wrapper / compilation script
|
||||||
|
const string ModID = "MOD_ID";
|
||||||
const string DisplayName = "DISPLAY_NAME";
|
const string DisplayName = "DISPLAY_NAME";
|
||||||
const string FaqUrl = "FAQ_URL";
|
const string FaqUrl = "FAQ_URL";
|
||||||
|
|
||||||
@@ -38,6 +39,9 @@ namespace OpenRA
|
|||||||
|
|
||||||
Directory.SetCurrentDirectory(directory);
|
Directory.SetCurrentDirectory(directory);
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(ModID))
|
||||||
|
args = args.Append("Game.Mod=" + ModID).ToArray();
|
||||||
|
|
||||||
var engineArgs = args
|
var engineArgs = args
|
||||||
.Append("Engine.LaunchPath=" + launcherPath)
|
.Append("Engine.LaunchPath=" + launcherPath)
|
||||||
.Select(arg => "\"" + arg + "\"");
|
.Select(arg => "\"" + arg + "\"");
|
||||||
|
|||||||
Reference in New Issue
Block a user