New system for resolving binaries

This commit is contained in:
Westin Miller
2017-10-04 21:40:42 -07:00
parent c14b8ed23a
commit d709bf68dd
4 changed files with 71 additions and 8 deletions

View File

@@ -26,8 +26,7 @@ namespace Torch.Server
login anonymous
app_update 298740
quit";
private TorchAssemblyResolver _resolver;
private TorchConfig _config;
private TorchServer _server;
private string _basePath;
@@ -50,7 +49,6 @@ quit";
if (!args.Contains("-noupdate"))
RunSteamCmd();
_resolver = new TorchAssemblyResolver(Path.Combine(_basePath, "DedicatedServer64"));
_config = InitConfig();
if (!_config.Parse(args))
return false;
@@ -94,8 +92,6 @@ quit";
}
else
_server.Start();
_resolver?.Dispose();
}
private TorchConfig InitConfig()