fix: Don't automatically create directories in read-only locations

Fixes #1767
This commit is contained in:
WerWolv 2024-06-24 21:51:37 +02:00
parent a5aaa60d29
commit 3d301c4202

View file

@ -36,7 +36,7 @@ namespace hex::init {
// Try to create all default directories
for (auto path : paths::All) {
for (auto &folder : path->all()) {
for (auto &folder : path->write()) {
try {
wolv::io::fs::createDirectories(folder);
} catch (...) {