MCPcopy Create free account
hub / github.com/HorizonMW/HorizonMW-Client / execute

Function execute

src/client/component/command.cpp:571–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 15

bsp_sys_error_stubFunction · 0.70
open_lui_mapvoteFunction · 0.70
add_commands_genericMethod · 0.70
launch_mapFunction · 0.70
trigger_map_rotationFunction · 0.70
execute_console_commandFunction · 0.70
sys_error_stubFunction · 0.70
initializeFunction · 0.70
post_unpackMethod · 0.70
post_unpackMethod · 0.70
post_unpackMethod · 0.70

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected