mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
fix patches - Different AppVer (#3344)
* fix patches * fix linux? * + mask, mask_jump32 | - insideMetadata
This commit is contained in:
@@ -378,14 +378,12 @@ void CheatsPatches::onSaveButtonClicked() {
|
||||
xmlWriter.writeStartDocument();
|
||||
|
||||
QXmlStreamReader xmlReader(xmlData);
|
||||
bool insideMetadata = false;
|
||||
|
||||
while (!xmlReader.atEnd()) {
|
||||
xmlReader.readNext();
|
||||
|
||||
if (xmlReader.isStartElement()) {
|
||||
if (xmlReader.name() == QStringLiteral("Metadata")) {
|
||||
insideMetadata = true;
|
||||
xmlWriter.writeStartElement(xmlReader.name().toString());
|
||||
|
||||
QString name = xmlReader.attributes().value("Name").toString();
|
||||
@@ -432,9 +430,6 @@ void CheatsPatches::onSaveButtonClicked() {
|
||||
}
|
||||
}
|
||||
} else if (xmlReader.isEndElement()) {
|
||||
if (xmlReader.name() == QStringLiteral("Metadata")) {
|
||||
insideMetadata = false;
|
||||
}
|
||||
xmlWriter.writeEndElement();
|
||||
} else if (xmlReader.isCharacters() && !xmlReader.isWhitespace()) {
|
||||
xmlWriter.writeCharacters(xmlReader.text().toString());
|
||||
|
||||
Reference in New Issue
Block a user