Merge pull request #7785 from Tilka/patch_editor

DolphinQt: limit patch padding to 8
This commit is contained in:
Tilka 2019-02-10 23:22:20 +00:00 committed by GitHub
commit 33e51da3b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -181,8 +181,8 @@ QGroupBox* NewPatchDialog::CreateEntry(int index)
dword->setChecked(entry_type == PatchEngine::PatchType::Patch32Bit); dword->setChecked(entry_type == PatchEngine::PatchType::Patch32Bit);
offset->setText( offset->setText(
QStringLiteral("%1").arg(m_patch.entries[index].address, 10, 16, QLatin1Char('0'))); QStringLiteral("%1").arg(m_patch.entries[index].address, 8, 16, QLatin1Char('0')));
value->setText(QStringLiteral("%1").arg(m_patch.entries[index].value, 10, 16, QLatin1Char('0'))); value->setText(QStringLiteral("%1").arg(m_patch.entries[index].value, 8, 16, QLatin1Char('0')));
return box; return box;
} }