mirror of
https://github.com/4sval/FModel.git
synced 2026-09-07 09:06:25 -05:00
little warning
This commit is contained in:
Submodule CUE4Parse updated: ad0c446f81...17b227c197
@@ -63,10 +63,10 @@ public partial class MainWindow
|
||||
|
||||
await _applicationView.CUE4Parse.Initialize();
|
||||
await _applicationView.AesManager.InitAes();
|
||||
await _applicationView.UpdateProvider(true);
|
||||
#if !DEBUG
|
||||
await _applicationView.CUE4Parse.InitInformation();
|
||||
#endif
|
||||
await _applicationView.UpdateProvider(true);
|
||||
await _applicationView.CUE4Parse.InitMappings();
|
||||
await _applicationView.InitImGuiSettings(newOrUpdated);
|
||||
await _applicationView.InitVgmStream();
|
||||
@@ -76,9 +76,9 @@ public partial class MainWindow
|
||||
_discordHandler.Initialize(_applicationView.GameDisplayName);
|
||||
|
||||
#if DEBUG
|
||||
await _threadWorkerView.Begin(cancellationToken =>
|
||||
_applicationView.CUE4Parse.Extract(cancellationToken,
|
||||
"FortniteGame/Content/Athena/Environments/Landscape/Material/M_Athena_Terrain_Master.o.uasset"));
|
||||
// await _threadWorkerView.Begin(cancellationToken =>
|
||||
// _applicationView.CUE4Parse.Extract(cancellationToken,
|
||||
// "fortnitegame/Content/Characters/Player/Female/Medium/Bodies/F_MED_Dieselpunk_01/Meshes/F_MED_Dieselpunk_01.uasset"));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -113,14 +113,13 @@ public class ApplicationViewModel : ViewModel
|
||||
await ApplicationService.ThreadWorkerView.Begin(cancellationToken =>
|
||||
{
|
||||
CUE4Parse.LoadVfs(cancellationToken, AesManager.AesKeys);
|
||||
CUE4Parse.Provider.LoadIniConfigs();
|
||||
CUE4Parse.VerifyCva();
|
||||
var vfcCount = CUE4Parse.Provider.LoadVirtualCache();
|
||||
if (vfcCount > 0)
|
||||
{
|
||||
FLogger.AppendInformation();
|
||||
FLogger.AppendText($"VFC loaded {vfcCount} cached packages data", Constants.WHITE, true);
|
||||
FLogger.AppendText($"VFC loaded {vfcCount} cached packages", Constants.WHITE, true);
|
||||
}
|
||||
// ConsoleVariables - a.StripAdditiveRefPose=1
|
||||
AesManager.SetAesKeys();
|
||||
});
|
||||
RaisePropertyChanged(nameof(GameDisplayName));
|
||||
|
||||
@@ -46,6 +46,7 @@ using OpenTK.Windowing.Common;
|
||||
using OpenTK.Windowing.Desktop;
|
||||
using Serilog;
|
||||
using SkiaSharp;
|
||||
using UE4Config.Parsing;
|
||||
using Application = System.Windows.Application;
|
||||
|
||||
namespace FModel.ViewModels;
|
||||
@@ -332,6 +333,19 @@ public class CUE4ParseViewModel : ViewModel
|
||||
Game = Helper.IAmThePanda(Provider.GameName) ? FGame.PandaGame : Provider.GameName.ToEnum(Game);
|
||||
}
|
||||
|
||||
public void VerifyCva()
|
||||
{
|
||||
Provider.LoadIniConfigs();
|
||||
|
||||
var inst = new List<InstructionToken>();
|
||||
Provider.DefaultEngine.FindPropertyInstructions("ConsoleVariables", "a.StripAdditiveRefPose", inst);
|
||||
if (inst.Count > 0 && inst[0].Value.Equals("1"))
|
||||
{
|
||||
FLogger.AppendWarning();
|
||||
FLogger.AppendText("Additive animations have their reference pose stripped, which will lead to inaccurate preview and export", Constants.WHITE, true);
|
||||
}
|
||||
}
|
||||
|
||||
public void ClearProvider()
|
||||
{
|
||||
if (Provider == null) return;
|
||||
|
||||
Reference in New Issue
Block a user