Skip to content

Commit

Permalink
Undawn custom encryption handling
Browse files Browse the repository at this point in the history
  • Loading branch information
GMatrixGames committed May 2, 2024
1 parent c3e4e7d commit 2df2424
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions FModel/ViewModels/CUE4ParseViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
using CUE4Parse_Conversion;
using CUE4Parse_Conversion.Sounds;

using CUE4Parse.GameTypes.UDWN.Encryption.Aes;
using EpicManifestParser;

using FModel.Creator;
Expand Down Expand Up @@ -183,6 +184,11 @@ public CUE4ParseViewModel()
}
}
Provider.ReadScriptData = UserSettings.Default.ReadScriptData;
Provider.CustomEncryption = Provider.Versions.Game switch
{
EGame.GAME_Undawn => ToaaAes.ToaaDecrypt,
_ => Provider.CustomEncryption
};

GameDirectory = new GameDirectoryViewModel();
AssetsFolder = new AssetsFolderViewModel();
Expand Down

0 comments on commit 2df2424

Please sign in to comment.