diff --git a/CUE4Parse b/CUE4Parse index f6725d28..ee13fd80 160000 --- a/CUE4Parse +++ b/CUE4Parse @@ -1 +1 @@ -Subproject commit f6725d28e0c74482738a6031a945f53a45c738c2 +Subproject commit ee13fd809faa9f7eb75f05d7725523a6be86e9fe diff --git a/FModel/ViewModels/CUE4ParseViewModel.cs b/FModel/ViewModels/CUE4ParseViewModel.cs index 86e31991..c851945d 100644 --- a/FModel/ViewModels/CUE4ParseViewModel.cs +++ b/FModel/ViewModels/CUE4ParseViewModel.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.IO; @@ -129,6 +130,7 @@ public class CUE4ParseViewModel : ViewModel public ConfigIni IoStoreOnDemand { get; } private Lazy _wwiseProviderLazy; public WwiseProvider WwiseProvider => _wwiseProviderLazy.Value; + public ConcurrentBag UnknownExtensions = []; public CUE4ParseViewModel() { @@ -629,6 +631,7 @@ public class CUE4ParseViewModel : ViewModel case "spi1d": case "verse": case "html": + case "json5": case "json": case "uref": case "cube": @@ -661,6 +664,14 @@ public class CUE4ParseViewModel : ViewModel case "po": case "md": case "h": + // Uncharted Waters Origin + case "crn": + case "uwt": + case "wvh": + case "bf": + case "bl": + case "bm": + case "br": { var data = Provider.SaveAsset(entry); using var stream = new MemoryStream(data) { Position = 0 }; @@ -804,8 +815,13 @@ public class CUE4ParseViewModel : ViewModel break; default: { + Log.Warning($"The package '{entry.Name}' is of an unknown type."); + if (!UnknownExtensions.Contains(entry.Extension)) + { + UnknownExtensions.Add(entry.Extension); FLogger.Append(ELog.Warning, () => - FLogger.Text($"The package '{entry.Name}' is of an unknown type.", Constants.WHITE, true)); + FLogger.Text($"There are some packages with an unknown type {entry.Extension}. Check Log file for a full list.", Constants.WHITE, true)); + } break; } }