| 1062 | } |
| 1063 | |
| 1064 | bool TopMenu::LoadConfiguration(const char *file, char *error, size_t maxlength) |
| 1065 | { |
| 1066 | SMCError err; |
| 1067 | SMCStates states; |
| 1068 | |
| 1069 | if ((err = textparsers->ParseFile_SMC(file, this, &states)) |
| 1070 | != SMCError_Okay) |
| 1071 | { |
| 1072 | const char *err_string = textparsers->GetSMCErrorString(err); |
| 1073 | if (!err_string) |
| 1074 | { |
| 1075 | err_string = "Unknown"; |
| 1076 | } |
| 1077 | |
| 1078 | UTIL_Format(error, maxlength, "%s", err_string); |
| 1079 | |
| 1080 | return false; |
| 1081 | } |
| 1082 | |
| 1083 | m_SerialNo++; |
| 1084 | m_bCatsNeedResort = true; |
| 1085 | |
| 1086 | return true; |
| 1087 | } |
| 1088 | |
| 1089 | bool TopMenu::OnIdentityRemoval(IdentityToken_t *owner) |
| 1090 | { |
no test coverage detected