Added check for RPF encryption type when saving to RPF from Meta Editor window

This commit is contained in:
dexy 2018-12-21 19:06:39 +11:00
parent 9bfd684b2b
commit 1ec09f03be
2 changed files with 2 additions and 1 deletions

View File

@ -1783,7 +1783,7 @@ namespace CodeWalker
private bool EnsureRpfValidEncryption(RpfFile file = null)
public bool EnsureRpfValidEncryption(RpfFile file = null)
{
if ((file == null) && (CurrentFolder.RpfFolder == null)) return false;

View File

@ -389,6 +389,7 @@ namespace CodeWalker.Forms
try
{
if (!(exploreForm?.EnsureRpfValidEncryption(rpfFileEntry.File) ?? false)) return false;
var newentry = RpfFile.CreateFile(rpfFileEntry.Parent, rpfFileEntry.Name, data);
if (newentry != rpfFileEntry)