- Timestamp:
- Aug 2, 2017, 6:46:15 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/ExecuteConsoleCommand.cs
r279 r306 15 15 return; 16 16 } 17 18 WebCommandResult.ResultType responseType = 19 req.QueryString ["raw"] != null ? WebCommandResult.ResultType.Raw : 20 (req.QueryString ["simple"] != null ? WebCommandResult.ResultType.ResultOnly : 21 WebCommandResult.ResultType.Full); 17 22 18 23 string commandline = req.QueryString ["command"]; … … 36 41 } 37 42 38 // TODO: Execute command (store resp as IConsoleConnection instance to deliver response to the single client?)39 40 43 resp.SendChunked = true; 41 WebCommandResult wcr = new WebCommandResult (commandPart, argumentsPart, resp );44 WebCommandResult wcr = new WebCommandResult (commandPart, argumentsPart, responseType, resp); 42 45 SdtdConsole.Instance.ExecuteAsync (commandline, wcr); 43 46 }
Note:
See TracChangeset
for help on using the changeset viewer.