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

Method GetResultingPath

external/ImGuiFileDialog/ImGuiFileDialog.cpp:2770–2780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2768}
2769
2770std::string IGFD::FileManager::GetResultingPath() {
2771 if (dLGDirectoryMode && m_SelectedFileNames.size() == 1) { // if directory mode with selection 1
2772 std::string selectedDirectory = fileNameBuffer;
2773 std::string path = m_CurrentPath;
2774 if (!selectedDirectory.empty() && selectedDirectory != ".") {
2775 path += IGFD::Utils::GetPathSeparator() + selectedDirectory;
2776 }
2777 return path;
2778 }
2779 return m_CurrentPath; // if file mode
2780}
2781
2782std::string IGFD::FileManager::GetResultingFileName(FileDialogInternal& vFileDialogInternal, IGFD_ResultMode vFlag) {
2783 if (!dLGDirectoryMode) { // if not directory mode

Callers 1

GetCurrentPathMethod · 0.80

Calls 2

sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected