1
0
mirror of synced 2024-11-24 07:40:17 +01:00

fix: Data paths being stored in config paths instead

This commit is contained in:
WerWolv 2024-06-24 14:27:24 +02:00
parent a002eb1bc1
commit e85746ddba

View File

@ -131,11 +131,11 @@ namespace hex::paths {
}
std::vector<std::fs::path> DataPath::all() const {
return appendPath(getConfigPaths(true), m_postfix);
return appendPath(getDataPaths(true), m_postfix);
}
std::vector<std::fs::path> DataPath::write() const {
auto result = appendPath(getConfigPaths(false), m_postfix);
auto result = appendPath(getDataPaths(false), m_postfix);
std::erase_if(result, [](const auto &entryPath) {
return !hex::fs::isPathWritable(entryPath);