1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Launcher fixes for mod filesystem (#860)

* Show submods as disabled if parent mod is disabled
* [845] disable button for local mods
Fixes for #812 #851 #852
This commit is contained in:
Nordsoft91
2022-09-10 20:30:41 +04:00
committed by GitHub
parent 5862c192b0
commit 205bb09880
8 changed files with 68 additions and 22 deletions

View File

@@ -16,9 +16,10 @@
namespace bfs = boost::filesystem;
CFilesystemLoader::CFilesystemLoader(std::string _mountPoint, bfs::path baseDirectory, size_t depth, bool initial):
baseDirectory(std::move(baseDirectory)),
mountPoint(std::move(_mountPoint)),
fileList(listFiles(mountPoint, depth, initial))
baseDirectory(std::move(baseDirectory)),
mountPoint(std::move(_mountPoint)),
fileList(listFiles(mountPoint, depth, initial)),
recursiveDepth(depth)
{
logGlobal->trace("File system loaded, %d files found", fileList.size());
}
@@ -52,7 +53,7 @@ void CFilesystemLoader::updateFilteredFiles(std::function<bool(const std::string
{
if (filter(mountPoint))
{
fileList = listFiles(mountPoint, 1, false);
fileList = listFiles(mountPoint, recursiveDepth, false);
}
}