| 5220 | } |
| 5221 | |
| 5222 | IGFD_C_API bool IGFD_AddPlace(ImGuiFileDialog* vContextPtr, const char* vGroupName, const char* vPlaceName, const char* vPlacePath, bool vCanBeSaved, const char* vIconText) { |
| 5223 | if (vContextPtr != nullptr) { |
| 5224 | auto group_ptr = vContextPtr->GetPlacesGroupPtr(vGroupName); |
| 5225 | if (group_ptr != nullptr) { |
| 5226 | IGFD::FileStyle style; |
| 5227 | style.icon = vIconText; |
| 5228 | return group_ptr->AddPlace(vPlaceName, vPlacePath, vCanBeSaved, style); |
| 5229 | } |
| 5230 | } |
| 5231 | return false; |
| 5232 | } |
| 5233 | |
| 5234 | IGFD_C_API bool IGFD_RemovePlace(ImGuiFileDialog* vContextPtr, const char* vGroupName, const char* vPlaceName) { |
| 5235 | if (vContextPtr != nullptr) { |
nothing calls this directly
no test coverage detected