mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-02 05:43:42 +01:00
Actually clear cache and restore imc files.
This commit is contained in:
parent
4030487472
commit
b09a736a85
7 changed files with 50 additions and 15 deletions
|
|
@ -229,7 +229,7 @@ public unsafe class ImcFile : MetaBaseFile
|
|||
resource->SetData( ( IntPtr )Data, Length );
|
||||
if( firstTime )
|
||||
{
|
||||
Penumbra.MetaFileManager.AddImcFile( resource, data, length );
|
||||
Penumbra.MetaFileManager.AddImcFile( resource, this, data, length );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using FFXIVClientStructs.FFXIV.Client.System.Resource;
|
||||
using OtterGui.Filesystem;
|
||||
|
|
@ -118,9 +119,9 @@ public partial class MetaManager
|
|||
{
|
||||
foreach( var file in _imcFiles.Values )
|
||||
{
|
||||
Penumbra.MetaFileManager.ResetByFile( file );
|
||||
file.Dispose();
|
||||
}
|
||||
|
||||
_imcFiles.Clear();
|
||||
_imcManipulations.Clear();
|
||||
RestoreImcDelegate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue