Concord and uncharted Waters Origin support
Some checks failed
FModel QA Builder / build (push) Has been cancelled

This commit is contained in:
LongerWarrior 2025-08-28 14:56:00 +03:00
parent 2c0c5d8694
commit 17d3586032
2 changed files with 18 additions and 2 deletions

@ -1 +1 @@
Subproject commit f6725d28e0c74482738a6031a945f53a45c738c2
Subproject commit ee13fd809faa9f7eb75f05d7725523a6be86e9fe

View File

@ -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<WwiseProvider> _wwiseProviderLazy;
public WwiseProvider WwiseProvider => _wwiseProviderLazy.Value;
public ConcurrentBag<string> 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;
}
}