Skip to content

Commit

Permalink
Check if redmod archives dir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
psiberx committed Oct 29, 2022
1 parent 9f29511 commit a51d013
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions src/App/Extensions/ModuleLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ void App::ModuleLoader::Configure()
for (const auto& module : m_configurables)
module->Reset();

bool foundAny = false;
bool successAll = true;

Core::Vector<std::filesystem::path> configDirs;

{
Expand All @@ -43,13 +40,20 @@ void App::ModuleLoader::Configure()
}
}

if (ExtraConfigDirExists())
if (!m_extraConfigDir.empty())
{
configDirs.emplace_back(m_extraConfigDir);
}

bool foundAny = false;
bool successAll = true;
std::error_code error;

for (const auto& configDir : configDirs)
{
if (!std::filesystem::exists(configDir, error))
continue;

auto configDirIt = std::filesystem::recursive_directory_iterator(
configDir, std::filesystem::directory_options::follow_directory_symlink);

Expand Down
2 changes: 1 addition & 1 deletion src/App/Project.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ constexpr auto Author = "psiberx";
constexpr auto NameW = L"ArchiveXL";
constexpr auto AuthorW = L"psiberx";

constexpr auto Version = semver::from_string_noexcept("1.1.4").value();
constexpr auto Version = semver::from_string_noexcept("1.1.5").value();
}
2 changes: 1 addition & 1 deletion xmake.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
set_xmakever("2.5.9")

set_project("ArchiveXL")
set_version("1.1.4")
set_version("1.1.5")

set_arch("x64")
set_languages("cxx20", "cxx2a")
Expand Down

0 comments on commit a51d013

Please sign in to comment.