Undawn custom encryption handling

This commit is contained in:
GMatrixGames 2024-05-02 14:30:54 -04:00
parent c3e4e7d404
commit 2df24242ac
No known key found for this signature in database
GPG Key ID: 685EB7EF9A26807C
2 changed files with 7 additions and 1 deletions

@ -1 +1 @@
Subproject commit 75bf52cafb31d8d90b1b8c517aeb36c6b0ee89e6
Subproject commit 8edb3a46c989889aed56ebb2cf910bbcf8fa5bed

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();