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:
@@ -90,8 +90,6 @@ namespace Torch.Server
|
||||
var gamePath = configuration.GetValue("gamePath", workingDir);
|
||||
var binDir = Path.Combine(gamePath, "DedicatedServer64");
|
||||
|
||||
Directory.SetCurrentDirectory(gamePath);
|
||||
|
||||
var instanceName = configuration.GetValue("instanceName", "Instance");
|
||||
string instancePath;
|
||||
|
||||
@@ -105,6 +103,8 @@ namespace Torch.Server
|
||||
instancePath = Directory.CreateDirectory(instanceName!).FullName;
|
||||
}
|
||||
|
||||
Directory.SetCurrentDirectory(gamePath);
|
||||
|
||||
return new ApplicationContext(new(workingDir), new(gamePath), new(binDir),
|
||||
new(instancePath), instanceName, isService);
|
||||
}
|
||||
|
Reference in New Issue
Block a user