public async Task <Process> Install() { Steam.SRCDS srcds = new Steam.SRCDS(_serverId); Process p = await srcds.Install("258550"); Error = srcds.Error; return(p); }
public async Task <bool> Update() { Steam.SRCDS srcds = new Steam.SRCDS(_serverId); bool success = await srcds.Update("258550"); Error = srcds.Error; return(success); }
public async Task <Process> Start() { string configPath = Functions.Path.GetServerFiles(_serverId, "server.cfg"); if (!File.Exists(configPath)) { Notice = $"server.cfg not found ({configPath})"; } Steam.SRCDS srcds = new Steam.SRCDS(_serverId); Process p = await srcds.Start(_param, "RustDedicated.exe"); Error = srcds.Error; return(p); }
public async Task <Process> Start() { string configPath = Functions.Path.GetServerFiles(_serverId, "serverconfig.xml"); if (!File.Exists(configPath)) { Notice = $"serverconfig.xml not found ({configPath})"; } Steam.SRCDS srcds = new Steam.SRCDS(_serverId); Process p = await srcds.Start(_param, "7DaysToDieServer.exe", false); Error = srcds.Error; return(p); }
public async Task <Process> Start() { string configPath = Functions.Path.GetServerFiles(_serverId, @"garrysmod\cfg\server.cfg"); if (!File.Exists(configPath)) { Notice = $"server.cfg not found ({configPath})"; } Steam.SRCDS srcds = new Steam.SRCDS(_serverId); //Garry's Mod server should set working directory to null because the workshop data only works when set to false Process p = await srcds.Start(_param, setWorkingDirectory : false); Error = srcds.Error; return(p); }