mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 21:01:37 +00:00
Merge only archives.
This commit is contained in:
parent
8b51f81cee
commit
2a2437789d
1 changed files with 6 additions and 1 deletions
|
|
@ -43,9 +43,14 @@ std::filesystem::path ModLoader::RedirectPath(std::string_view path)
|
||||||
std::replace(pathStr.begin(), pathStr.end(), '\\', '/');
|
std::replace(pathStr.begin(), pathStr.end(), '\\', '/');
|
||||||
std::filesystem::path fsPath(std::move(pathStr));
|
std::filesystem::path fsPath(std::move(pathStr));
|
||||||
|
|
||||||
|
bool canBeMerged =
|
||||||
|
path.find(".arl") == (path.size() - 4) ||
|
||||||
|
path.find(".ar.") == (path.size() - 6) ||
|
||||||
|
path.find(".ar") == (path.size() - 3);
|
||||||
|
|
||||||
for (auto& mod : g_mods)
|
for (auto& mod : g_mods)
|
||||||
{
|
{
|
||||||
if (mod.type == ModType::UMM && mod.merge && !mod.readOnly.contains(fsPath))
|
if (mod.type == ModType::UMM && mod.merge && canBeMerged && !mod.readOnly.contains(fsPath))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (auto& includeDir : mod.includeDirs)
|
for (auto& includeDir : mod.includeDirs)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue