| 569 | #endif |
| 570 | |
| 571 | void execute(std::string command, const bool sync) |
| 572 | { |
| 573 | command += "\n"; |
| 574 | |
| 575 | if (sync) |
| 576 | { |
| 577 | game::Cmd_ExecuteSingleCommand(0, 0, command.data()); |
| 578 | } |
| 579 | else |
| 580 | { |
| 581 | game::Cbuf_AddText(0, 0, command.data()); |
| 582 | } |
| 583 | } |
| 584 | |
| 585 | class component final : public component_interface |
| 586 | { |
no test coverage detected