mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Let meta incorporation look at both extensions.
This commit is contained in:
parent
55c17c7845
commit
c681f1533d
1 changed files with 28 additions and 30 deletions
|
|
@ -154,11 +154,12 @@ public partial class Mod
|
||||||
{
|
{
|
||||||
foreach( var (key, file) in Files.ToList() )
|
foreach( var (key, file) in Files.ToList() )
|
||||||
{
|
{
|
||||||
|
var ext1 = key.Extension().AsciiToLower().ToString();
|
||||||
|
var ext2 = file.Extension.ToLowerInvariant();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
switch( file.Extension )
|
if( ext1 == ".meta" || ext2 == ".meta" )
|
||||||
{
|
{
|
||||||
case ".meta":
|
|
||||||
FileData.Remove( key );
|
FileData.Remove( key );
|
||||||
if( !file.Exists )
|
if( !file.Exists )
|
||||||
{
|
{
|
||||||
|
|
@ -172,9 +173,9 @@ public partial class Mod
|
||||||
}
|
}
|
||||||
|
|
||||||
ManipulationData.UnionWith( meta.MetaManipulations );
|
ManipulationData.UnionWith( meta.MetaManipulations );
|
||||||
|
}
|
||||||
break;
|
else if( ext1 == ".rgsp" || ext2 == ".rgsp" )
|
||||||
case ".rgsp":
|
{
|
||||||
FileData.Remove( key );
|
FileData.Remove( key );
|
||||||
if( !file.Exists )
|
if( !file.Exists )
|
||||||
{
|
{
|
||||||
|
|
@ -188,9 +189,6 @@ public partial class Mod
|
||||||
}
|
}
|
||||||
|
|
||||||
ManipulationData.UnionWith( rgsp.MetaManipulations );
|
ManipulationData.UnionWith( rgsp.MetaManipulations );
|
||||||
|
|
||||||
break;
|
|
||||||
default: continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch( Exception e )
|
catch( Exception e )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue