logic: Reloading ProjectSettings on refresh
This commit is contained in:
@@ -5,16 +5,7 @@
|
||||
|
||||
#include "utility/file/FileSystem.h"
|
||||
|
||||
FileManager::FileManager(
|
||||
std::vector<FilePath> sourcePaths,
|
||||
std::vector<FilePath> includePaths,
|
||||
std::vector<std::string> sourceExtensions,
|
||||
std::vector<std::string> includeExtensions
|
||||
)
|
||||
: m_sourcePaths(sourcePaths)
|
||||
, m_includePaths(includePaths)
|
||||
, m_sourceExtensions(sourceExtensions)
|
||||
, m_includeExtensions(includeExtensions)
|
||||
FileManager::FileManager()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -32,6 +23,18 @@ const std::vector<FilePath>& FileManager::getIncludePaths() const
|
||||
return m_includePaths;
|
||||
}
|
||||
|
||||
void FileManager::setPaths(
|
||||
std::vector<FilePath> sourcePaths,
|
||||
std::vector<FilePath> includePaths,
|
||||
std::vector<std::string> sourceExtensions,
|
||||
std::vector<std::string> includeExtensions
|
||||
){
|
||||
m_sourcePaths = sourcePaths;
|
||||
m_includePaths = includePaths;
|
||||
m_sourceExtensions = sourceExtensions;
|
||||
m_includeExtensions = includeExtensions;
|
||||
}
|
||||
|
||||
void FileManager::reset()
|
||||
{
|
||||
m_files.clear();
|
||||
|
||||
@@ -10,16 +10,18 @@
|
||||
class FileManager
|
||||
{
|
||||
public:
|
||||
FileManager(
|
||||
FileManager();
|
||||
~FileManager();
|
||||
|
||||
const std::vector<FilePath>& getSourcePaths() const;
|
||||
const std::vector<FilePath>& getIncludePaths() const;
|
||||
|
||||
void setPaths(
|
||||
std::vector<FilePath> sourcePaths,
|
||||
std::vector<FilePath> includePaths,
|
||||
std::vector<std::string> sourceExtensions,
|
||||
std::vector<std::string> includeExtensions
|
||||
);
|
||||
~FileManager();
|
||||
|
||||
const std::vector<FilePath>& getSourcePaths() const;
|
||||
const std::vector<FilePath>& getIncludePaths() const;
|
||||
|
||||
void reset();
|
||||
void fetchFilePaths();
|
||||
|
||||
Reference in New Issue
Block a user