using System.Threading.Tasks; using Newtonsoft.Json; using Wabbajack.Common; namespace Wabbajack.Lib.CompilationSteps { public class IgnoreGameFiles : ACompilationStep { private readonly string _startDir; public IgnoreGameFiles(ACompiler compiler) : base(compiler) { _startDir = Consts.GameFolderFilesDir + "\\"; } public override async ValueTask Run(RawSourceFile source) { if (!((string)source.Path).StartsWith(_startDir, System.StringComparison.OrdinalIgnoreCase)) return null; var i = source.EvolveTo(); i.Reason = "Default game file"; return i; } } }