mirror of
https://github.com/4sval/FModel.git
synced 2026-04-26 00:04:53 -05:00
Concord and uncharted Waters Origin support
Some checks failed
FModel QA Builder / build (push) Has been cancelled
Some checks failed
FModel QA Builder / build (push) Has been cancelled
This commit is contained in:
parent
2c0c5d8694
commit
17d3586032
|
|
@ -1 +1 @@
|
||||||
Subproject commit f6725d28e0c74482738a6031a945f53a45c738c2
|
Subproject commit ee13fd809faa9f7eb75f05d7725523a6be86e9fe
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Concurrent;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
@ -129,6 +130,7 @@ public class CUE4ParseViewModel : ViewModel
|
||||||
public ConfigIni IoStoreOnDemand { get; }
|
public ConfigIni IoStoreOnDemand { get; }
|
||||||
private Lazy<WwiseProvider> _wwiseProviderLazy;
|
private Lazy<WwiseProvider> _wwiseProviderLazy;
|
||||||
public WwiseProvider WwiseProvider => _wwiseProviderLazy.Value;
|
public WwiseProvider WwiseProvider => _wwiseProviderLazy.Value;
|
||||||
|
public ConcurrentBag<string> UnknownExtensions = [];
|
||||||
|
|
||||||
public CUE4ParseViewModel()
|
public CUE4ParseViewModel()
|
||||||
{
|
{
|
||||||
|
|
@ -629,6 +631,7 @@ public class CUE4ParseViewModel : ViewModel
|
||||||
case "spi1d":
|
case "spi1d":
|
||||||
case "verse":
|
case "verse":
|
||||||
case "html":
|
case "html":
|
||||||
|
case "json5":
|
||||||
case "json":
|
case "json":
|
||||||
case "uref":
|
case "uref":
|
||||||
case "cube":
|
case "cube":
|
||||||
|
|
@ -661,6 +664,14 @@ public class CUE4ParseViewModel : ViewModel
|
||||||
case "po":
|
case "po":
|
||||||
case "md":
|
case "md":
|
||||||
case "h":
|
case "h":
|
||||||
|
// Uncharted Waters Origin
|
||||||
|
case "crn":
|
||||||
|
case "uwt":
|
||||||
|
case "wvh":
|
||||||
|
case "bf":
|
||||||
|
case "bl":
|
||||||
|
case "bm":
|
||||||
|
case "br":
|
||||||
{
|
{
|
||||||
var data = Provider.SaveAsset(entry);
|
var data = Provider.SaveAsset(entry);
|
||||||
using var stream = new MemoryStream(data) { Position = 0 };
|
using var stream = new MemoryStream(data) { Position = 0 };
|
||||||
|
|
@ -804,8 +815,13 @@ public class CUE4ParseViewModel : ViewModel
|
||||||
break;
|
break;
|
||||||
default:
|
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.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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user