mirror of
https://github.com/4sval/FModel.git
synced 2026-09-22 16:34:41 -05:00
Merge branch 'dev' into commands_rework
This commit is contained in:
Submodule CUE4Parse updated: 6d7157a29b...dc0f8183f6
@@ -36,6 +36,7 @@ public class BaseIcon : UCreator
|
||||
|
||||
if (Object.TryGetValue(out FInstancedStruct[] dataList, "DataList"))
|
||||
{
|
||||
GetRarity(dataList);
|
||||
GetSeries(dataList);
|
||||
Preview = Utils.GetBitmap(dataList);
|
||||
}
|
||||
@@ -139,6 +140,12 @@ public class BaseIcon : UCreator
|
||||
GetSeries(export);
|
||||
}
|
||||
|
||||
private void GetRarity(FInstancedStruct[] s)
|
||||
{
|
||||
if (s.FirstOrDefault(d => d.NonConstStruct?.TryGetValue(out EFortRarity _, "Rarity") == true) is { } dl)
|
||||
GetRarity(dl.NonConstStruct.Get<EFortRarity>("Rarity"));
|
||||
}
|
||||
|
||||
private void GetSeries(FInstancedStruct[] s)
|
||||
{
|
||||
if (s.FirstOrDefault(d => d.NonConstStruct?.TryGetValue(out FPackageIndex _, "Series") == true) is { } dl)
|
||||
|
||||
@@ -493,7 +493,7 @@ public class CUE4ParseViewModel : ViewModel
|
||||
var ioStoreOnDemandPath = Path.Combine(UserSettings.Default.GameDirectory, "..\\..\\..\\Cloud", inst[0].Value.SubstringAfterLast("/").SubstringBefore("\""));
|
||||
if (!File.Exists(ioStoreOnDemandPath)) return;
|
||||
|
||||
await Provider.RegisterVfsAsync(new IoChunkToc(ioStoreOnDemandPath));
|
||||
await Provider.RegisterVfsAsync(new IoChunkToc(ioStoreOnDemandPath, Provider.Versions));
|
||||
var onDemandCount = await Provider.MountAsync();
|
||||
FLogger.Append(ELog.Information, () =>
|
||||
FLogger.Text($"{onDemandCount} on-demand archive{(onDemandCount > 1 ? "s" : "")} streamed via epicgames.com", Constants.WHITE, true));
|
||||
|
||||
Reference in New Issue
Block a user