From e281c760df81a256724ba051358a3d68efeeb921 Mon Sep 17 00:00:00 2001 From: aiekick Date: Sun, 26 Nov 2023 21:29:16 +0100 Subject: [PATCH] - --- ImGuiFileDialog.cpp | 1 + ImGuiFileDialog.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ImGuiFileDialog.cpp b/ImGuiFileDialog.cpp index ea6bde5..1de0b5e 100644 --- a/ImGuiFileDialog.cpp +++ b/ImGuiFileDialog.cpp @@ -1635,6 +1635,7 @@ bool IGFD::FileInfos::FinalizeFileTypeParsing(const size_t& vMaxDotToExtract) { IGFD::FileManager::FileManager() { fsRoot = std::string(1u, PATH_SEP); + m_FileSystemName = typeid(FILE_SYSTEM_OVERRIDE).name(); // std::make_unique is not available un cpp11 m_FileSystemPtr = std::unique_ptr(new FILE_SYSTEM_OVERRIDE()); //m_FileSystemPtr = std::make_unique(); diff --git a/ImGuiFileDialog.h b/ImGuiFileDialog.h index 393ec73..fc27bfd 100644 --- a/ImGuiFileDialog.h +++ b/ImGuiFileDialog.h @@ -1678,6 +1678,7 @@ class IGFD_API FileManager { std::string m_LastSelectedFileName; // for shift multi selection std::set m_SelectedFileNames; // the user selection of FilePathNames bool m_CreateDirectoryMode = false; // for create directory widget + std::string m_FileSystemName; std::unique_ptr m_FileSystemPtr = nullptr; public: @@ -1790,6 +1791,9 @@ class IGFD_API FileManager { IFileSystem* GetFileSystemInstance() { return m_FileSystemPtr.get(); } + const std::string& GetFileSystemName() { + return m_FileSystemName; + } }; #pragma endregion