mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-03 14:23:43 +01:00
Extract Strings to separate submodule.
This commit is contained in:
parent
bc901f3ff6
commit
35baba18bf
75 changed files with 751 additions and 1657 deletions
|
|
@ -143,8 +143,8 @@ public partial class ModCollection
|
|||
return false;
|
||||
}
|
||||
|
||||
_specialCollections[ ( int )collectionType ] = Empty;
|
||||
CollectionChanged.Invoke( collectionType, null, Empty, null );
|
||||
_specialCollections[ ( int )collectionType ] = Default;
|
||||
CollectionChanged.Invoke( collectionType, null, Default, null );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -172,8 +172,8 @@ public partial class ModCollection
|
|||
return false;
|
||||
}
|
||||
|
||||
_characters[ characterName ] = Empty;
|
||||
CollectionChanged.Invoke( CollectionType.Character, null, Empty, characterName );
|
||||
_characters[ characterName ] = Default;
|
||||
CollectionChanged.Invoke( CollectionType.Character, null, Default, characterName );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using OtterGui.Classes;
|
||||
using Penumbra.GameData.ByteString;
|
||||
using Penumbra.GameData.Enums;
|
||||
using Penumbra.Meta.Manager;
|
||||
using Penumbra.Mods;
|
||||
|
|
@ -8,8 +7,8 @@ using System.Collections.Generic;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Threading;
|
||||
using Penumbra.Interop;
|
||||
using Penumbra.Meta.Files;
|
||||
using Penumbra.Meta.Manipulations;
|
||||
using Penumbra.String.Classes;
|
||||
|
||||
namespace Penumbra.Collections;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using OtterGui;
|
||||
using OtterGui.Classes;
|
||||
using Penumbra.GameData.ByteString;
|
||||
using Penumbra.Meta.Manager;
|
||||
using Penumbra.Meta.Manipulations;
|
||||
using Penumbra.Mods;
|
||||
|
|
@ -8,6 +7,8 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Penumbra.Api.Enums;
|
||||
using Penumbra.GameData.Util;
|
||||
using Penumbra.String.Classes;
|
||||
|
||||
namespace Penumbra.Collections;
|
||||
|
||||
|
|
@ -240,7 +241,7 @@ public partial class ModCollection
|
|||
if( addMetaChanges )
|
||||
{
|
||||
++_collection.ChangeCounter;
|
||||
if( _collection == Penumbra.CollectionManager.Default && Penumbra.CharacterUtility.Ready && Penumbra.Config.EnableMods )
|
||||
if( _collection == Penumbra.CollectionManager.Default && Penumbra.CharacterUtility.Ready && Penumbra.Config.EnableMods )
|
||||
{
|
||||
Penumbra.ResidentResources.Reload();
|
||||
MetaManipulations.SetFiles();
|
||||
|
|
@ -413,7 +414,7 @@ public partial class ModCollection
|
|||
// Add the same conflict list to both conflict directions.
|
||||
var conflictList = new List< object > { data };
|
||||
_conflicts[ addedMod ] = addedConflicts.Append( new ModConflicts( existingMod, conflictList, existingPriority < addedPriority,
|
||||
existingPriority != addedPriority ) );
|
||||
existingPriority != addedPriority ) );
|
||||
_conflicts[ existingMod ] = existingConflicts.Append( new ModConflicts( addedMod, conflictList,
|
||||
existingPriority >= addedPriority,
|
||||
existingPriority != addedPriority ) );
|
||||
|
|
@ -474,9 +475,9 @@ public partial class ModCollection
|
|||
// Skip IMCs because they would result in far too many false-positive items,
|
||||
// since they are per set instead of per item-slot/item/variant.
|
||||
var identifier = GameData.GameData.GetIdentifier();
|
||||
foreach( var (resolved, modPath) in ResolvedFiles.Where( file => !file.Key.Path.EndsWith( 'i', 'm', 'c' ) ) )
|
||||
foreach( var (resolved, modPath) in ResolvedFiles.Where( file => !file.Key.Path.EndsWith( "imc"u8 ) ) )
|
||||
{
|
||||
foreach( var (name, obj) in identifier.Identify( resolved.ToGamePath() ) )
|
||||
foreach( var (name, obj) in identifier.Identify( new GamePath( resolved.ToString() ) ) )
|
||||
{
|
||||
if( !_changedItems.TryGetValue( name, out var data ) )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue