From eb7128bcc1d07dc2fb4e8a146f4bd4e29100adf9 Mon Sep 17 00:00:00 2001 From: raven02 Date: Thu, 26 Jun 2014 00:10:17 +0800 Subject: [PATCH] Log error when flag 0x3c/0x3d EDAT files detected --- rpcs3/Crypto/unedat.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpcs3/Crypto/unedat.cpp b/rpcs3/Crypto/unedat.cpp index f16525c7c7..ea8c9bab5f 100644 --- a/rpcs3/Crypto/unedat.cpp +++ b/rpcs3/Crypto/unedat.cpp @@ -156,6 +156,12 @@ int decrypt_data(rFile *in, rFile *out, EDAT_SDAT_HEADER *edat, NPD_HEADER *npd, int length = 0; int compression_end = 0; + if ((edat->flags & EDAT_FLAG_0x3C) != 0 || (edat->flags & EDAT_FLAG_0x3D) != 0) + { + ConLog.Error("EDAT: Flag 0x3C/0x3D EDAT files are unsupported yet"); + return -1; + } + if ((edat->flags & EDAT_COMPRESSED_FLAG) != 0) { unsigned char metadata[0x20];