MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / removeFromRecents

Function removeFromRecents

TheForceEngine/TFE_Editor/editor.cpp:1179–1197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

project_loadFunction · 0.85

Calls 3

c_strMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected