mirror of
https://github.com/4sval/FModel.git
synced 2026-09-10 10:36:28 -05:00
bump
This commit is contained in:
Submodule CUE4Parse updated: 05f36306fa...1acd39e63c
@@ -156,7 +156,6 @@ public class ApplicationViewModel : ViewModel
|
||||
await ApplicationService.ThreadWorkerView.Begin(cancellationToken =>
|
||||
{
|
||||
CUE4Parse.LoadVfs(cancellationToken, AesManager.AesKeys);
|
||||
CUE4Parse.Provider.LoadIniConfigs();
|
||||
AesManager.SetAesKeys();
|
||||
});
|
||||
RaisePropertyChanged(nameof(GameDisplayName));
|
||||
|
||||
@@ -312,6 +312,7 @@ public class CUE4ParseViewModel : ViewModel
|
||||
if (k.Length != 66) k = Constants.ZERO_64_CHAR;
|
||||
Provider.SubmitKey(key.Guid, new FAesKey(k));
|
||||
}
|
||||
Provider.PostMount();
|
||||
|
||||
// files in MountedVfs will be enabled
|
||||
foreach (var file in GameDirectory.DirectoryFiles)
|
||||
@@ -437,34 +438,15 @@ public class CUE4ParseViewModel : ViewModel
|
||||
});
|
||||
}
|
||||
|
||||
private bool _cvaVerifDone { get; set; }
|
||||
public Task VerifyConsoleVariables()
|
||||
{
|
||||
if (_cvaVerifDone)
|
||||
return Task.CompletedTask;
|
||||
|
||||
return Task.Run(() =>
|
||||
if (Provider.Versions["StripAdditiveRefPose"])
|
||||
{
|
||||
foreach (var token in Provider.DefaultEngine.Sections.FirstOrDefault(s => s.Name == "ConsoleVariables")?.Tokens ?? new List<IniToken>())
|
||||
{
|
||||
if (token is not InstructionToken it) continue;
|
||||
var boolValue = it.Value.Equals("1");
|
||||
FLogger.Append(ELog.Warning, () =>
|
||||
FLogger.Text("Additive animations have their reference pose stripped, which will lead to inaccurate preview and export", Constants.WHITE, true));
|
||||
}
|
||||
|
||||
switch (it.Key)
|
||||
{
|
||||
case "a.StripAdditiveRefPose" when boolValue:
|
||||
FLogger.Append(ELog.Warning, () =>
|
||||
FLogger.Text("Additive animations have their reference pose stripped, which will lead to inaccurate preview and export", Constants.WHITE, true));
|
||||
continue;
|
||||
case "r.StaticMesh.KeepMobileMinLODSettingOnDesktop":
|
||||
case "r.SkeletalMesh.KeepMobileMinLODSettingOnDesktop":
|
||||
Provider.Versions[it.Key[2..]] = boolValue;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
_cvaVerifDone = true;
|
||||
});
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
public Task VerifyOnDemandArchives()
|
||||
|
||||
@@ -38,7 +38,7 @@ public class LoadCommand : ViewModelCommand<LoadingModesViewModel>
|
||||
public override async void Execute(LoadingModesViewModel contextViewModel, object parameter)
|
||||
{
|
||||
if (_applicationView.CUE4Parse.GameDirectory.HasNoFile) return;
|
||||
if (_applicationView.CUE4Parse.Provider.Files.Count <= 0)
|
||||
if (_applicationView.CUE4Parse.Provider.Keys.Count == 0 && _applicationView.CUE4Parse.Provider.RequiredKeys.Count > 0)
|
||||
{
|
||||
FLogger.Append(ELog.Error, () =>
|
||||
FLogger.Text("An encrypted archive has been found. In order to decrypt it, please specify a working AES encryption key", Constants.WHITE, true));
|
||||
|
||||
Reference in New Issue
Block a user