mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-25 18:09:22 +01:00
Add some Metadata validation.
This commit is contained in:
parent
5567134a56
commit
e14fedf59e
17 changed files with 254 additions and 158 deletions
|
|
@ -36,7 +36,7 @@ public readonly struct ImcCache : IDisposable
|
|||
|
||||
public bool ApplyMod( MetaFileManager manager, ModCollection collection, ImcManipulation manip )
|
||||
{
|
||||
if( !manip.Valid )
|
||||
if( !manip.Validate() )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -76,7 +76,7 @@ public readonly struct ImcCache : IDisposable
|
|||
|
||||
public bool RevertMod( MetaFileManager manager, ModCollection collection, ImcManipulation m )
|
||||
{
|
||||
if( !m.Valid || !_imcManipulations.Remove( m ) )
|
||||
if( !m.Validate() || !_imcManipulations.Remove( m ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue