change instance path resolving back to bin folder
i dont think we need to place our instance at game dir by default
This commit is contained in:
@@ -89,8 +89,6 @@ namespace Torch.Server
|
|||||||
var workingDir = AppContext.BaseDirectory;
|
var workingDir = AppContext.BaseDirectory;
|
||||||
var gamePath = configuration.GetValue("gamePath", workingDir);
|
var gamePath = configuration.GetValue("gamePath", workingDir);
|
||||||
var binDir = Path.Combine(gamePath, "DedicatedServer64");
|
var binDir = Path.Combine(gamePath, "DedicatedServer64");
|
||||||
|
|
||||||
Directory.SetCurrentDirectory(gamePath);
|
|
||||||
|
|
||||||
var instanceName = configuration.GetValue("instanceName", "Instance");
|
var instanceName = configuration.GetValue("instanceName", "Instance");
|
||||||
string instancePath;
|
string instancePath;
|
||||||
@@ -105,6 +103,8 @@ namespace Torch.Server
|
|||||||
instancePath = Directory.CreateDirectory(instanceName!).FullName;
|
instancePath = Directory.CreateDirectory(instanceName!).FullName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Directory.SetCurrentDirectory(gamePath);
|
||||||
|
|
||||||
return new ApplicationContext(new(workingDir), new(gamePath), new(binDir),
|
return new ApplicationContext(new(workingDir), new(gamePath), new(binDir),
|
||||||
new(instancePath), instanceName, isService);
|
new(instancePath), instanceName, isService);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user