Skip to content

Commit

Permalink
fix: Default folders not being created correctly anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Jun 29, 2024
1 parent ac1a283 commit b92b092
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main/gui/source/init/tasks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ namespace hex::init {

// Try to create all default directories
for (auto path : paths::All) {
for (auto &folder : path->write()) {
for (auto &folder : path->all()) {
try {
wolv::io::fs::createDirectories(folder);
if (hex::fs::isPathWritable(folder.parent_path()))
wolv::io::fs::createDirectories(folder);
} catch (...) {
log::error("Failed to create folder {}!", wolv::util::toUTF8String(folder));
result = false;
Expand Down

0 comments on commit b92b092

Please sign in to comment.