mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
memory_patcher: Fix isEnabled not being reset between patches. (#3458)
This commit is contained in:
@@ -287,6 +287,7 @@ void OnGameLoaded() {
|
|||||||
QString appVer = xmlReader.attributes().value("AppVer").toString();
|
QString appVer = xmlReader.attributes().value("AppVer").toString();
|
||||||
|
|
||||||
// Check and update the isEnabled attribute
|
// Check and update the isEnabled attribute
|
||||||
|
isEnabled = false;
|
||||||
for (const QXmlStreamAttribute& attr : xmlReader.attributes()) {
|
for (const QXmlStreamAttribute& attr : xmlReader.attributes()) {
|
||||||
if (attr.name() == QStringLiteral("isEnabled")) {
|
if (attr.name() == QStringLiteral("isEnabled")) {
|
||||||
isEnabled = (attr.value().toString() == "true");
|
isEnabled = (attr.value().toString() == "true");
|
||||||
|
|||||||
Reference in New Issue
Block a user