MCPcopy Create free account
hub / github.com/aiekick/ImGuiFileDialog / GetResultingPath

Method GetResultingPath

ImGuiFileDialog.cpp:2708–2718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2706}
2707
2708std::string IGFD::FileManager::GetResultingPath() {
2709 if (dLGDirectoryMode && m_SelectedFileNames.size() == 1) { // if directory mode with selection 1
2710 std::string selectedDirectory = fileNameBuffer;
2711 std::string path = m_CurrentPath;
2712 if (!selectedDirectory.empty() && selectedDirectory != ".") {
2713 path += IGFD::Utils::GetPathSeparator() + selectedDirectory;
2714 }
2715 return path;
2716 }
2717 return m_CurrentPath; // if file mode
2718}
2719
2720std::string IGFD::FileManager::GetResultingFileName(FileDialogInternal& vFileDialogInternal, IGFD_ResultMode vFlag) {
2721 if (!dLGDirectoryMode) { // if not directory mode

Callers 1

GetCurrentPathMethod · 0.80

Calls 2

sizeMethod · 0.80
emptyMethod · 0.80

Tested by

no test coverage detected