| 1004 | #endif |
| 1005 | |
| 1006 | bool ProcessConsoleCommand(ICECAdapter *parser, std::string &input) |
| 1007 | { |
| 1008 | if (!input.empty()) |
| 1009 | { |
| 1010 | std::string command; |
| 1011 | if (GetWord(input, command)) |
| 1012 | { |
| 1013 | if (command == "q" || command == "quit") |
| 1014 | return false; |
| 1015 | |
| 1016 | ProcessCommandTX(parser, command, input) || |
| 1017 | ProcessCommandON(parser, command, input) || |
| 1018 | ProcessCommandSTANDBY(parser, command, input) || |
| 1019 | ProcessCommandPOLL(parser, command, input) || |
| 1020 | ProcessCommandLA(parser, command, input) || |
| 1021 | ProcessCommandP(parser, command, input) || |
| 1022 | ProcessCommandPA(parser, command, input) || |
| 1023 | ProcessCommandAS(parser, command, input) || |
| 1024 | ProcessCommandIS(parser, command, input) || |
| 1025 | ProcessCommandOSD(parser, command, input) || |
| 1026 | ProcessCommandPING(parser, command, input) || |
| 1027 | ProcessCommandVOLUP(parser, command, input) || |
| 1028 | ProcessCommandVOLDOWN(parser, command, input) || |
| 1029 | ProcessCommandMUTE(parser, command, input) || |
| 1030 | ProcessCommandMON(parser, command, input) || |
| 1031 | ProcessCommandBL(parser, command, input) || |
| 1032 | ProcessCommandLANG(parser, command, input) || |
| 1033 | ProcessCommandVEN(parser, command, input) || |
| 1034 | ProcessCommandVER(parser, command, input) || |
| 1035 | ProcessCommandPOW(parser, command, input) || |
| 1036 | ProcessCommandNAME(parser, command, input) || |
| 1037 | ProcessCommandLAD(parser, command, input) || |
| 1038 | ProcessCommandAD(parser, command, input) || |
| 1039 | ProcessCommandAT(parser, command, input) || |
| 1040 | ProcessCommandR(parser, command, input) || |
| 1041 | ProcessCommandH(parser, command, input) || |
| 1042 | ProcessCommandLOG(parser, command, input) || |
| 1043 | ProcessCommandSCAN(parser, command, input) || |
| 1044 | ProcessCommandSP(parser, command, input) || |
| 1045 | ProcessCommandSPL(parser, command, input) || |
| 1046 | ProcessCommandEA(parser, command, input) || |
| 1047 | ProcessCommandDA(parser, command, input) || |
| 1048 | ProcessCommandGAS(parser, command, input) || |
| 1049 | ProcessCommandGSAM(parser, command, input) || |
| 1050 | ProcessCommandSELF(parser, command, input) |
| 1051 | #if CEC_LIB_VERSION_MAJOR >= 5 |
| 1052 | || ProcessCommandSTATS(parser, command, input) |
| 1053 | #endif |
| 1054 | ; |
| 1055 | } |
| 1056 | } |
| 1057 | return true; |
| 1058 | } |
| 1059 | |
| 1060 | bool ProcessCommandLineArguments(int argc, char *argv[]) |
| 1061 | { |
no test coverage detected