BF: Proper condition for TXT tag files

This commit is contained in:
unknown 2021-11-28 16:54:40 +01:00
parent fed371a6f1
commit bae4073a26
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ namespace Wabbajack.Lib.CompilationSteps
{
foreach (var folderpath in _ignoreList)
{
if (!source.AbsolutePath.Equals(folderpath) || !source.AbsolutePath.InFolder(folderpath)) continue;
if (!source.AbsolutePath.Equals(folderpath) && !source.AbsolutePath.InFolder(folderpath)) continue;
var result = source.EvolveTo<IgnoredDirectly>();
result.Reason = _reason;
return result;

View File

@ -45,7 +45,7 @@ namespace Wabbajack.Lib.CompilationSteps
{
foreach (var folderpath in _includeDirectly)
{
if (!source.AbsolutePath.Equals(folderpath) || !source.AbsolutePath.InFolder(folderpath)) continue;
if (!source.AbsolutePath.Equals(folderpath) && !source.AbsolutePath.InFolder(folderpath)) continue;
var result = source.EvolveTo<InlineFile>();
result.SourceDataID = await _compiler.IncludeFile(source.AbsolutePath);
return result;