| 1177 | } |
| 1178 | |
| 1179 | void removeFromRecents(const char* path) |
| 1180 | { |
| 1181 | // Does it already exist? |
| 1182 | const size_t count = s_recents.size(); |
| 1183 | s32 foundId = -1; |
| 1184 | for (size_t i = 0; i < count; i++) |
| 1185 | { |
| 1186 | if (strcasecmp(s_recents[i].path.c_str(), path) == 0) |
| 1187 | { |
| 1188 | foundId = s32(i); |
| 1189 | break; |
| 1190 | } |
| 1191 | } |
| 1192 | // Remove if it exists. |
| 1193 | if (foundId >= 0) |
| 1194 | { |
| 1195 | s_recents.erase(s_recents.begin() + foundId); |
| 1196 | } |
| 1197 | } |
| 1198 | |
| 1199 | std::vector<RecentProject>* getRecentProjects() |
| 1200 | { |
no test coverage detected