mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-27 19:09:20 +01:00
Make line endings explicit in editorconfig and share in sub projects, also apply editorconfig everywhere and move some namespaces.
This commit is contained in:
parent
53adb6fa54
commit
2b4a01df06
155 changed files with 1620 additions and 1614 deletions
|
|
@ -44,9 +44,9 @@ public readonly struct ImcCache : IDisposable
|
|||
if (idx < 0)
|
||||
{
|
||||
idx = _imcManipulations.Count;
|
||||
_imcManipulations.Add((manip, null!));
|
||||
}
|
||||
|
||||
_imcManipulations.Add((manip, null!));
|
||||
}
|
||||
|
||||
var path = manip.GamePath();
|
||||
try
|
||||
{
|
||||
|
|
@ -79,13 +79,13 @@ public readonly struct ImcCache : IDisposable
|
|||
public bool RevertMod(MetaFileManager manager, ModCollection collection, ImcManipulation m)
|
||||
{
|
||||
if (!m.Validate())
|
||||
return false;
|
||||
|
||||
return false;
|
||||
|
||||
var idx = _imcManipulations.FindIndex(p => p.Item1.Equals(m));
|
||||
if (idx < 0)
|
||||
return false;
|
||||
|
||||
var (_, file) = _imcManipulations[idx];
|
||||
var (_, file) = _imcManipulations[idx];
|
||||
_imcManipulations.RemoveAt(idx);
|
||||
|
||||
if (_imcManipulations.All(p => !ReferenceEquals(p.Item2, file)))
|
||||
|
|
@ -94,8 +94,8 @@ public readonly struct ImcCache : IDisposable
|
|||
collection._cache!.ForceFile(file.Path, FullPath.Empty);
|
||||
file.Dispose();
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var def = ImcFile.GetDefault(manager, file.Path, m.EquipSlot, m.Variant.Id, out _);
|
||||
var manip = m.Copy(def);
|
||||
if (!manip.Apply(file))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue