fix: IPS patch applying being broken

This commit is contained in:
WerWolv
2023-01-21 00:29:16 +01:00
parent 76d47bf856
commit f17e04273d

View File

@@ -156,7 +156,7 @@ namespace hex {
ipsOffset += 1;
}
if (std::memcmp(ipsPatch.data(), "EOF", 3) == 0)
if (std::memcmp(ipsPatch.data() + ipsOffset, "EOF", 3) == 0)
foundEOF = true;
}
@@ -207,7 +207,7 @@ namespace hex {
ipsOffset += 1;
}
if (std::memcmp(ipsPatch.data(), "EEOF", 4) == 0)
if (std::memcmp(ipsPatch.data() + ipsOffset, "EEOF", 4) == 0)
foundEEOF = true;
}