From f3e3563d98565fef4784932cd27b6b7ba2e3e78e Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 11 Jan 2015 13:39:58 -0800 Subject: [PATCH] X/Y xorpad detection fix --- PKX/f1-Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKX/f1-Main.cs b/PKX/f1-Main.cs index 351539428..61b6440ea 100644 --- a/PKX/f1-Main.cs +++ b/PKX/f1-Main.cs @@ -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