X/Y xorpad detection fix

This commit is contained in:
Kurt
2015-01-11 13:39:58 -08:00
parent 96874a826b
commit f3e3563d98

View File

@@ -621,7 +621,7 @@ private bool openXOR(byte[] input, string path)
// Weakly check the validity of the decrypted content
if (BitConverter.ToUInt32(decryptedPS, 0x76000 - 0x1F0) != 0x42454546) // Not OR/AS
if (BitConverter.ToUInt32(decryptedPS, 0x76000 - 0x1F0) != 0x42454546)
if (BitConverter.ToUInt32(decryptedPS, 0x65600 - 0x1F0) != 0x42454546)
continue; // Not X/Y, so continue.
else
Array.Resize(ref decryptedPS, 0x65600); // set to X/Y size