Skip to content

Commit 17d3586

Browse files
committed
Concord and uncharted Waters Origin support
1 parent 2c0c5d8 commit 17d3586

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

FModel/ViewModels/CUE4ParseViewModel.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Collections.Concurrent;
23
using System.Collections.Generic;
34
using System.Diagnostics;
45
using System.IO;
@@ -129,6 +130,7 @@ public Snooper SnooperViewer
129130
public ConfigIni IoStoreOnDemand { get; }
130131
private Lazy<WwiseProvider> _wwiseProviderLazy;
131132
public WwiseProvider WwiseProvider => _wwiseProviderLazy.Value;
133+
public ConcurrentBag<string> UnknownExtensions = [];
132134

133135
public CUE4ParseViewModel()
134136
{
@@ -629,6 +631,7 @@ public void Extract(CancellationToken cancellationToken, GameFile entry, bool ad
629631
case "spi1d":
630632
case "verse":
631633
case "html":
634+
case "json5":
632635
case "json":
633636
case "uref":
634637
case "cube":
@@ -661,6 +664,14 @@ public void Extract(CancellationToken cancellationToken, GameFile entry, bool ad
661664
case "po":
662665
case "md":
663666
case "h":
667+
// Uncharted Waters Origin
668+
case "crn":
669+
case "uwt":
670+
case "wvh":
671+
case "bf":
672+
case "bl":
673+
case "bm":
674+
case "br":
664675
{
665676
var data = Provider.SaveAsset(entry);
666677
using var stream = new MemoryStream(data) { Position = 0 };
@@ -804,8 +815,13 @@ public void Extract(CancellationToken cancellationToken, GameFile entry, bool ad
804815
break;
805816
default:
806817
{
818+
Log.Warning($"The package '{entry.Name}' is of an unknown type.");
819+
if (!UnknownExtensions.Contains(entry.Extension))
820+
{
821+
UnknownExtensions.Add(entry.Extension);
807822
FLogger.Append(ELog.Warning, () =>
808-
FLogger.Text($"The package '{entry.Name}' is of an unknown type.", Constants.WHITE, true));
823+
FLogger.Text($"There are some packages with an unknown type {entry.Extension}. Check Log file for a full list.", Constants.WHITE, true));
824+
}
809825
break;
810826
}
811827
}

0 commit comments

Comments
 (0)