mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-31 21:03:48 +01:00
Split GamePath and RelPath file, made GamePath independent of RelPath.
This commit is contained in:
parent
d6bb45f33c
commit
a4ae44f310
6 changed files with 191 additions and 80 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ namespace Penumbra.Mod
|
|||
|
||||
if( ret.Count == 0 )
|
||||
{
|
||||
ret.Add( new GamePath( relPath, 0 ) );
|
||||
ret.Add( relPath.ToGamePath( ) );
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue