Skip to content

Commit

Permalink
Hardcode disallowing lower formID ranges until Medium/Light masters s…
Browse files Browse the repository at this point in the history
…upported
  • Loading branch information
Noggog committed Sep 26, 2024
1 parent 5d05b32 commit 5da10fe
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Synthesis.Bethesda.Execution/Running/Runner/CreateEmptyPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,24 @@ public FilePath Create(ModKey modKey, RunParameters runParameters)
var path = new FilePath(Path.Combine(ProfileDirectories.SeedDirectory, modKey.FileName));
_logger.Information("Creating seed mod at {Path}", path);
path.Directory?.Create(_fileSystem);

var formIdRangeBool = runParameters.FormIDRangeMode.ToForceBool();

// Hardcode this for now until Light/Medium masters supported
if (runParameters.Master || !runParameters.Master)
{
formIdRangeBool = false;
}

var mod = ModInstantiator.Activator(modKey, _gameReleaseContext.Release,
headerVersion: runParameters.HeaderVersionOverride,
forceUseLowerFormIDRanges: runParameters.FormIDRangeMode.ToForceBool());
forceUseLowerFormIDRanges: formIdRangeBool);
mod.IsMaster = runParameters.Master;
mod.BeginWrite
.ToPath(path)
.WithNoLoadOrder()
.WithFileSystem(_fileSystem)
.WithForcedLowerFormIdRangeUsage(runParameters.FormIDRangeMode.ToForceBool())
.WithForcedLowerFormIdRangeUsage(formIdRangeBool)
.NoNextFormIDProcessing()
.Write();
return path;
Expand Down

0 comments on commit 5da10fe

Please sign in to comment.