mirror of
https://github.com/4sval/FModel.git
synced 2026-03-22 01:34:37 -05:00
Fixed Folder Extract and Export options (#133)
This commit is contained in:
parent
ac6a6e024c
commit
af5241b82d
|
|
@ -14,6 +14,7 @@ using System.Threading;
|
|||
using System.Threading.Tasks;
|
||||
using System.Windows.Data;
|
||||
using FModel.PakReader.Pak;
|
||||
using FModel.PakReader.IO;
|
||||
|
||||
namespace FModel.ViewModels.Treeview
|
||||
{
|
||||
|
|
@ -86,6 +87,17 @@ namespace FModel.ViewModels.Treeview
|
|||
});
|
||||
}
|
||||
}
|
||||
else if (Globals.CachedIoStores.TryGetValue(entry.ContainerFile, out FFileIoStoreReader IoStore))
|
||||
{
|
||||
if (IoStore.TryGetValue("/" + entry.Name.Substring(0, entry.Name.LastIndexOf(".")), out var IoEntry)) // remove the extension to get the entry
|
||||
{
|
||||
entriesToExtract.Add(new ListBoxViewModel
|
||||
{
|
||||
Content = IoEntry.GetNameWithExtension(),
|
||||
ReaderEntry = IoEntry
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -120,7 +132,15 @@ namespace FModel.ViewModels.Treeview
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (Globals.CachedIoStores.TryGetValue(entry.ContainerFile, out FFileIoStoreReader IoStore))
|
||||
{
|
||||
if (IoStore.TryGetValue("/" + entry.Name.Substring(0, entry.Name.LastIndexOf(".")), out var IoEntry)) // remove the extension to get the entry
|
||||
{
|
||||
Assets.Export(IoEntry, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}).ContinueWith(t =>
|
||||
{
|
||||
timer.Stop();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user