diff --git a/apps/openmw/options.cpp b/apps/openmw/options.cpp index c78dc395d9..dbf910b70f 100644 --- a/apps/openmw/options.cpp +++ b/apps/openmw/options.cpp @@ -27,7 +27,7 @@ namespace OpenMW ("data", bpo::value()->default_value(Files::MaybeQuotedPathContainer(), "data") ->multitoken()->composing(), "set data directories (later directories have higher priority)") - ("data-local", bpo::value()->default_value(Files::MaybeQuotedPathContainer::value_type(), ""), + ("data-local", bpo::value()->default_value(Files::MaybeQuotedPath(), ""), "set local data directory (highest priority)") ("fallback-archive", bpo::value()->default_value(StringsVector(), "fallback-archive") diff --git a/components/files/configurationmanager.cpp b/components/files/configurationmanager.cpp index 87f4cd4943..0c5ba40882 100644 --- a/components/files/configurationmanager.cpp +++ b/components/files/configurationmanager.cpp @@ -168,9 +168,12 @@ void ConfigurationManager::addExtraConfigDirs(std::stack(defaultUserData) = boost::filesystem::path("?userdata?"); + description.add_options() ("config", bpo::value()->multitoken()->composing(), "additional config directories") - ("user-data", bpo::value(), + ("user-data", bpo::value()->default_value(defaultUserData, ""), "set user data directory (used for saves, screenshots, etc)"); }