Add some early support for IMC groups.

This commit is contained in:
Ottermandias 2024-05-16 18:30:40 +02:00
parent d47d31b665
commit df6eb3fdd2
15 changed files with 360 additions and 146 deletions

View file

@ -36,7 +36,7 @@ public readonly struct ImcCache : IDisposable
public bool ApplyMod(MetaFileManager manager, ModCollection collection, ImcManipulation manip)
{
if (!manip.Validate())
if (!manip.Validate(true))
return false;
var idx = _imcManipulations.FindIndex(p => p.Item1.Equals(manip));
@ -77,7 +77,7 @@ public readonly struct ImcCache : IDisposable
public bool RevertMod(MetaFileManager manager, ModCollection collection, ImcManipulation m)
{
if (!m.Validate())
if (!m.Validate(false))
return false;
var idx = _imcManipulations.FindIndex(p => p.Item1.Equals(m));