public async Task <Process> Install() { Steam.HLDS hlds = new Steam.HLDS(_serverId); Process p = await hlds.Install("90 mod czero", "90"); Error = hlds.Error; return(p); }
public async Task <bool> Update() { Steam.HLDS hlds = new Steam.HLDS(_serverId); bool success = await hlds.Update("90 mod czero", "90"); Error = hlds.Error; return(success); }
public async Task <Process> Start() { string configPath = Functions.Path.GetServerFiles(_serverId, @"czero\server.cfg"); if (!File.Exists(configPath)) { Notice = $"server.cfg not found ({configPath})"; } Steam.HLDS hlds = new Steam.HLDS(_serverId); Process p = await hlds.Start(_param); Error = hlds.Error; return(p); }