MCPcopy Create free account
hub / github.com/dfranx/SHADERed / Save

Method Save

libs/misc/ImFileDialog.cpp:445–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443 m_treeCache.clear();
444 }
445 bool FileDialog::Save(const std::string& key, const std::string& title, const std::string& filter, const std::string& startingDir)
446 {
447 if (!m_currentKey.empty())
448 return false;
449
450 m_currentKey = key;
451 m_currentTitle = title + "###" + key;
452 m_isOpen = true;
453 m_calledOpenPopup = false;
454 m_result.clear();
455 m_inputTextbox[0] = 0;
456 m_selections.clear();
457 m_selectedFileItem = -1;
458 m_isMultiselect = false;
459 m_type = IFD_DIALOG_SAVE;
460
461 m_parseFilter(filter);
462 if (!startingDir.empty())
463 m_setDirectory(std::filesystem::u8path(startingDir), false);
464 else
465 m_setDirectory(m_currentDirectory, false); // refresh contents
466
467 return true;
468 }
469 bool FileDialog::Open(const std::string& key, const std::string& title, const std::string& filter, bool isMultiselect, const std::string& startingDir)
470 {
471 if (!m_currentKey.empty())

Callers 1

mainFunction · 0.45

Calls 2

emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected