MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / m_InitPlaces

Method m_InitPlaces

external/ImGuiFileDialog/ImGuiFileDialog.cpp:3208–3224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3206
3207#ifdef USE_PLACES_FEATURE
3208void IGFD::PlacesFeature::m_InitPlaces(FileDialogInternal& vFileDialogInternal) {
3209#ifdef USE_PLACES_BOOKMARKS
3210 (void)vFileDialogInternal; // for disable compiler warning about unused var
3211 AddPlacesGroup(placesBookmarksGroupName, placesBookmarksDisplayOrder, true, PLACES_BOOKMARK_DEFAULT_OPEPEND);
3212#endif // USE_PLACES_BOOKMARK
3213#ifdef USE_PLACES_DEVICES
3214 AddPlacesGroup(placesDevicesGroupName, placesDevicesDisplayOrder, false, PLACES_DEVICES_DEFAULT_OPEPEND);
3215 auto devices_ptr = GetPlacesGroupPtr(placesDevicesGroupName);
3216 if (devices_ptr != nullptr && vFileDialogInternal.fileManager.GetFileSystemInstance() != nullptr) {
3217 const auto& devices = vFileDialogInternal.fileManager.GetFileSystemInstance()->GetDevicesList();
3218 for (const auto& device : devices) {
3219 devices_ptr->AddPlace(device.first + " " + device.second, device.first + IGFD::Utils::GetPathSeparator(), false);
3220 }
3221 devices_ptr = nullptr;
3222 }
3223#endif // USE_PLACES_DEVICES
3224}
3225
3226void IGFD::PlacesFeature::m_DrawPlacesButton() {
3227 IMGUI_TOGGLE_BUTTON(placesButtonString, &m_PlacesPaneShown);

Callers

nothing calls this directly

Calls 2

GetDevicesListMethod · 0.80
AddPlaceMethod · 0.80

Tested by

no test coverage detected