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:
zznty
2022-10-15 00:55:44 +07:00
parent 8f32f64ede
commit 067d8802b6

View File

@@ -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);
}