Skip to content

Commit

Permalink
StringSourceTester only use enabled mods
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggog committed Dec 3, 2024
1 parent fde975f commit 8dc6990
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Mutagen.Bethesda.Plugins.Binary.Streams;
using Mutagen.Bethesda.Plugins.Records;
using Mutagen.Bethesda.Plugins.Records.Mapping;
using Mutagen.Bethesda.Skyrim;
using Mutagen.Bethesda.Strings;
using Noggog;
using RecordTypes = Mutagen.Bethesda.Skyrim.Internals.RecordTypes;
Expand Down Expand Up @@ -50,7 +49,9 @@ public void Execute()

if (SourceFile == ModPath.Empty)
{
using var env = GameEnvironment.Typical.Construct(Release);
using var env = GameEnvironment.Typical.Builder(Release)
.TransformModListings(x => x.Where(x => x.Enabled))
.Build();
var context = env.LinkCache.ResolveSimpleContext(FormKey, targetType);
Test(Path.Combine(env.DataFolderPath, context.ModKey.FileName), env.DataFolderPath, targetType);
}
Expand Down

0 comments on commit 8dc6990

Please sign in to comment.