Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
aiekick committed Nov 26, 2023
1 parent c1c643f commit e281c76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions ImGuiFileDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<FILE_SYSTEM_OVERRIDE>(new FILE_SYSTEM_OVERRIDE());
//m_FileSystemPtr = std::make_unique<FILE_SYSTEM_OVERRIDE>();
Expand Down
4 changes: 4 additions & 0 deletions ImGuiFileDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -1678,6 +1678,7 @@ class IGFD_API FileManager {
std::string m_LastSelectedFileName; // for shift multi selection
std::set<std::string> m_SelectedFileNames; // the user selection of FilePathNames
bool m_CreateDirectoryMode = false; // for create directory widget
std::string m_FileSystemName;
std::unique_ptr<IFileSystem> m_FileSystemPtr = nullptr;

public:
Expand Down Expand Up @@ -1790,6 +1791,9 @@ class IGFD_API FileManager {
IFileSystem* GetFileSystemInstance() {
return m_FileSystemPtr.get();
}
const std::string& GetFileSystemName() {
return m_FileSystemName;
}
};

#pragma endregion
Expand Down

0 comments on commit e281c76

Please sign in to comment.