Split GamePath and RelPath file, made GamePath independent of RelPath.

This commit is contained in:
Ottermandias 2021-07-25 01:05:01 +02:00
parent d6bb45f33c
commit a4ae44f310
6 changed files with 191 additions and 80 deletions

View file

@ -160,12 +160,12 @@ namespace Penumbra.Mod
var duplicates = FindOrCreateDuplicates( _mod );
if( !inOption1 )
{
duplicates.AddFile( relName1, new GamePath( relName2, 0 ) );
duplicates.AddFile( relName2, relName2.ToGamePath() );
}
if( !inOption2 )
{
duplicates.AddFile( relName1, new GamePath( relName1, 0 ) );
duplicates.AddFile( relName1, relName1.ToGamePath() );
}
}
@ -227,7 +227,7 @@ namespace Penumbra.Mod
continue;
}
if( kvp.Value.Count == 0 || kvp.Value.First().CompareTo( new GamePath( kvp.Key, 0 ) ) == 0 )
if( kvp.Value.Count == 0 || kvp.Value.First().CompareTo( kvp.Key.ToGamePath() ) == 0 )
{
required.OptionFiles.Remove( kvp.Key );
}

View file

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