mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-26 00:43:00 +08:00
Added check for RPF encryption type when saving to RPF from Meta Editor window
This commit is contained in:
parent
9bfd684b2b
commit
1ec09f03be
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user