From 1a79f098fa4855a1c5ae57bf99822c5dcb74a740 Mon Sep 17 00:00:00 2001 From: Project579 Date: Sat, 10 Sep 2022 02:31:22 +0200 Subject: [PATCH] Use std::filesystem::create_directories instead of std::filesystem::create_directory to recursively generate directories from the provided path. --- apps/launcher/maindialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/launcher/maindialog.cpp b/apps/launcher/maindialog.cpp index a8e7a89b54..d0f3ebf0bc 100644 --- a/apps/launcher/maindialog.cpp +++ b/apps/launcher/maindialog.cpp @@ -159,7 +159,7 @@ Launcher::FirstRunDialogResult Launcher::MainDialog::showFirstRunDialog() // Dialog wizard and setup will fail if the config directory does not already exist const auto& userConfigDir = mCfgMgr.getUserConfigPath(); if ( ! exists(userConfigDir) ) { - if ( ! create_directory(userConfigDir) ) + if ( ! create_directories(userConfigDir) ) { cfgError(tr("Error opening OpenMW configuration file"), tr("
Could not create directory %0

\ @@ -484,7 +484,7 @@ bool Launcher::MainDialog::writeSettings() const auto& userPath = mCfgMgr.getUserConfigPath(); if (!exists(userPath)) { - if (!create_directory(userPath)) { + if (!create_directories(userPath)) { cfgError(tr("Error creating OpenMW configuration directory"), tr("
Could not create %0

\ Please make sure you have the right permissions \