mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-24 17:09:06 +00:00
Cheats: Refresh active code after editing it.
This commit is contained in:
parent
b9affd5bc8
commit
ca056611ac
2 changed files with 9 additions and 0 deletions
|
|
@ -224,6 +224,7 @@ void GeckoCodeWidget::EditCode()
|
|||
return;
|
||||
|
||||
const int index = item->data(Qt::UserRole).toInt();
|
||||
const bool enabled = item->checkState() == Qt::Checked;
|
||||
|
||||
m_cheat_code_editor->SetGeckoCode(&m_gecko_codes[index]);
|
||||
if (m_cheat_code_editor->exec() == QDialog::Rejected)
|
||||
|
|
@ -231,6 +232,9 @@ void GeckoCodeWidget::EditCode()
|
|||
|
||||
SaveCodes();
|
||||
UpdateList();
|
||||
|
||||
if (!m_restart_required && enabled)
|
||||
Gecko::SetActiveCodes(m_gecko_codes, m_game_id, m_game_revision);
|
||||
}
|
||||
|
||||
void GeckoCodeWidget::RemoveCode()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue