| 1034 | } |
| 1035 | |
| 1036 | void showMessageBox(const char* type, const char* msg, ...) |
| 1037 | { |
| 1038 | char fullStr[TFE_MAX_PATH * 2]; |
| 1039 | va_list arg; |
| 1040 | va_start(arg, msg); |
| 1041 | vsprintf(fullStr, msg, arg); |
| 1042 | va_end(arg); |
| 1043 | |
| 1044 | s_editorPopup = POPUP_MSG_BOX; |
| 1045 | strcpy(s_msgBox.msg, fullStr); |
| 1046 | sprintf(s_msgBox.id, "%s##MessageBox", type); |
| 1047 | } |
| 1048 | |
| 1049 | void hidePopup() |
| 1050 | { |
no outgoing calls
no test coverage detected