| 5285 | } |
| 5286 | |
| 5287 | IGFD_C_API bool IGFD_AddPlace(ImGuiFileDialog* vContextPtr, const char* vGroupName, const char* vPlaceName, const char* vPlacePath, bool vCanBeSaved, const char* vIconText) { |
| 5288 | if (vContextPtr != nullptr) { |
| 5289 | auto group_ptr = vContextPtr->GetPlacesGroupPtr(vGroupName); |
| 5290 | if (group_ptr != nullptr) { |
| 5291 | IGFD::FileStyle style; |
| 5292 | style.icon = vIconText; |
| 5293 | return group_ptr->AddPlace(vPlaceName, vPlacePath, vCanBeSaved, style); |
| 5294 | } |
| 5295 | } |
| 5296 | return false; |
| 5297 | } |
| 5298 | |
| 5299 | IGFD_C_API bool IGFD_RemovePlace(ImGuiFileDialog* vContextPtr, const char* vGroupName, const char* vPlaceName) { |
| 5300 | if (vContextPtr != nullptr) { |
nothing calls this directly
no test coverage detected