Undawn custom encryption handling

This commit is contained in:
GMatrixGames
2024-05-02 14:30:54 -04:00
parent c3e4e7d404
commit 2df24242ac
2 changed files with 7 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ using CUE4Parse.UE4.Wwise;
using CUE4Parse_Conversion;
using CUE4Parse_Conversion.Sounds;
using CUE4Parse.GameTypes.UDWN.Encryption.Aes;
using EpicManifestParser;
using FModel.Creator;
@@ -183,6 +184,11 @@ public class CUE4ParseViewModel : ViewModel
}
}
Provider.ReadScriptData = UserSettings.Default.ReadScriptData;
Provider.CustomEncryption = Provider.Versions.Game switch
{
EGame.GAME_Undawn => ToaaAes.ToaaDecrypt,
_ => Provider.CustomEncryption
};
GameDirectory = new GameDirectoryViewModel();
AssetsFolder = new AssetsFolderViewModel();