mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-31 21:03:48 +01:00
Add Filesystem Compression as a toggle and button. Also some auto-formatting.
This commit is contained in:
parent
e26873934b
commit
4e704770cb
21 changed files with 385 additions and 344 deletions
|
|
@ -4,6 +4,7 @@ using System.Runtime.CompilerServices;
|
|||
using Dalamud.Plugin.Services;
|
||||
using Dalamud.Utility.Signatures;
|
||||
using FFXIVClientStructs.FFXIV.Client.System.Memory;
|
||||
using OtterGui.Compression;
|
||||
using Penumbra.Collections;
|
||||
using Penumbra.Collections.Manager;
|
||||
using Penumbra.GameData;
|
||||
|
|
@ -26,9 +27,11 @@ public unsafe class MetaFileManager
|
|||
internal readonly ActiveCollectionData ActiveCollections;
|
||||
internal readonly ValidityChecker ValidityChecker;
|
||||
internal readonly IdentifierService Identifier;
|
||||
internal readonly FileCompactor Compactor;
|
||||
|
||||
public MetaFileManager(CharacterUtility characterUtility, ResidentResourceManager residentResources, IDataManager gameData,
|
||||
ActiveCollectionData activeCollections, Configuration config, ValidityChecker validityChecker, IdentifierService identifier)
|
||||
ActiveCollectionData activeCollections, Configuration config, ValidityChecker validityChecker, IdentifierService identifier,
|
||||
FileCompactor compactor)
|
||||
{
|
||||
CharacterUtility = characterUtility;
|
||||
ResidentResources = residentResources;
|
||||
|
|
@ -37,6 +40,7 @@ public unsafe class MetaFileManager
|
|||
Config = config;
|
||||
ValidityChecker = validityChecker;
|
||||
Identifier = identifier;
|
||||
Compactor = compactor;
|
||||
SignatureHelper.Initialise(this);
|
||||
}
|
||||
|
||||
|
|
@ -91,7 +95,7 @@ public unsafe class MetaFileManager
|
|||
|
||||
ResidentResources.Reload();
|
||||
if (collection?._cache == null)
|
||||
CharacterUtility.ResetAll();
|
||||
CharacterUtility.ResetAll();
|
||||
else
|
||||
collection._cache.Meta.SetFiles();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue