mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Blep
This commit is contained in:
parent
da73feacf4
commit
f3b906007d
3 changed files with 96 additions and 89 deletions
|
|
@ -275,17 +275,21 @@ public class TexToolsMeta
|
|||
{
|
||||
var def = new ImcFile( new ImcManipulation( info.PrimaryType, info.SecondaryType, info.PrimaryId, info.SecondaryId, i,
|
||||
new ImcEntry() ).GamePath() );
|
||||
foreach( var value in values.Where( v => true || !v.Equals( def.GetEntry( 0, i ) ) ) )
|
||||
foreach( var value in values )
|
||||
{
|
||||
ImcManipulations.Add( new ImcManipulation( info.PrimaryType, info.SecondaryType, info.PrimaryId, info.SecondaryId, i,
|
||||
value ) );
|
||||
if( !value.Equals( def.GetEntry( 0, i ) ) )
|
||||
{
|
||||
ImcManipulations.Add( new ImcManipulation( info.PrimaryType, info.SecondaryType, info.PrimaryId, info.SecondaryId, i,
|
||||
value ) );
|
||||
}
|
||||
|
||||
++i;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( "Could not compute IMC manipulation. This is in all likelihood due to TexTools corrupting your index files.\n"
|
||||
PluginLog.Warning( $"Could not compute IMC manipulation for {info.PrimaryType} {info.PrimaryId}. This is in all likelihood due to TexTools corrupting your index files.\n"
|
||||
+ $"If the following error looks like Lumina is having trouble to read an IMC file, please do a do-over in TexTools:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,10 @@ public sealed partial class Mod2
|
|||
{
|
||||
if( unusedFile.ToGamePath( mod.BasePath, out var gamePath ) )
|
||||
{
|
||||
mod._default.FileData.Add( gamePath, unusedFile );
|
||||
if( !mod._default.FileData.TryAdd( gamePath, unusedFile ) )
|
||||
{
|
||||
PluginLog.Error( $"Could not add {gamePath} because it already points to {mod._default.FileData[ gamePath ]}." );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue