Added getAllPaths() method to get combined results from stacked adapters.

This commit is contained in:
2025-03-02 20:02:03 +01:00
parent 3d0f5b9a3f
commit b6657189d3
5 changed files with 75 additions and 2 deletions

View File

@@ -4,8 +4,10 @@
#define MIJIN_PLATFORM_FOLDERS_HPP_INCLUDED 1
#include "../internal/common.hpp"
#include "../util/flag.hpp"
#include <filesystem>
#include <vector>
namespace fs = std::filesystem;
@@ -20,8 +22,19 @@ enum class KnownFolder
USER_DATA_ROOT
};
MIJIN_DEFINE_FLAG(IncludeUser);
MIJIN_DEFINE_FLAG(IncludeSystem);
[[nodiscard]]
fs::path getKnownFolder(KnownFolder folder) MIJIN_NOEXCEPT;
[[nodiscard]]
std::vector<fs::path> getAllConfigFolders(IncludeUser includeUser = IncludeUser::YES,
IncludeSystem includeSystem = IncludeSystem::YES) MIJIN_NOEXCEPT;
[[nodiscard]]
std::vector<fs::path> getAllDataFolders(IncludeUser includeUser = IncludeUser::YES,
IncludeSystem includeSystem = IncludeSystem::YES) MIJIN_NOEXCEPT;
}
#endif // defined(MIJIN_PLATFORM_FOLDERS_HPP_INCLUDED)