Allow the game root directory to be moved away from the binaries.

This commit is contained in:
Paul Chote
2020-11-21 15:40:57 +00:00
committed by teinarss
parent dd0b08d54a
commit 6ad5b9ebc4
7 changed files with 78 additions and 8 deletions

View File

@@ -40,6 +40,10 @@ namespace OpenRA
{
static void Main(string[] args)
{
var engineDir = Environment.GetEnvironmentVariable("ENGINE_DIR");
if (!string.IsNullOrEmpty(engineDir))
Platform.OverrideEngineDir(engineDir);
Log.AddChannel("perf", null);
Log.AddChannel("debug", null);