Final fixes for GameData.

This commit is contained in:
Ottermandias 2021-07-25 02:45:48 +02:00
parent 702f8e3967
commit ea40d5bc9c
20 changed files with 133 additions and 153 deletions

View file

@ -161,7 +161,7 @@ namespace Penumbra.Mod
var duplicates = FindOrCreateDuplicates( _mod );
if( !inOption1 )
{
duplicates.AddFile( relName2, relName2.ToGamePath() );
duplicates.AddFile( relName1, relName2.ToGamePath() );
}
if( !inOption2 )

View file

@ -31,18 +31,19 @@ namespace Penumbra.Mod
public void ComputeChangedItems()
{
var identifier = GameData.GameData.GetIdentifier();
ChangedItems.Clear();
foreach( var file in Resources.ModFiles.Select( f => new RelPath( f, BasePath ) ) )
{
foreach( var path in ModFunctions.GetAllFiles( file, Meta ) )
{
ObjectIdentifier.Identify( ChangedItems, path );
identifier.Identify( ChangedItems, path );
}
}
foreach( var path in Meta.FileSwaps.Keys )
{
ObjectIdentifier.Identify( ChangedItems, path );
identifier.Identify( ChangedItems, path );
}
}

View file

@ -53,7 +53,7 @@ namespace Penumbra.Mod
if( ret.Count == 0 )
{
ret.Add( relPath.ToGamePath( ) );
ret.Add( relPath.ToGamePath() );
}
return ret;