queue up the command name for a function, as if user had typed it
| 1116 | |
| 1117 | // queue up the command name for a function, as if user had typed it |
| 1118 | void NetHackQtMainWindow::FuncAsCommand(int (*func)(void)) |
| 1119 | { |
| 1120 | char cmdbuf[32]; |
| 1121 | Strcpy(cmdbuf, "#"); |
| 1122 | (void) cmdname_from_func(func, &cmdbuf[1], FALSE); |
| 1123 | doKeys(cmdbuf); |
| 1124 | } |
| 1125 | |
| 1126 | void NetHackQtMainWindow::AddMessageWindow(NetHackQtMessageWindow* window) |
| 1127 | { |
no test coverage detected