mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-24 08:59:15 +00:00
Merge pull request #13907 from TryTwo/PR_Cheat_Refresh
Cheats: Refresh active code after editing it.
This commit is contained in:
commit
70f9ae2432
2 changed files with 9 additions and 0 deletions
|
|
@ -298,6 +298,8 @@ void ARCodeWidget::OnCodeEditClicked()
|
|||
return;
|
||||
|
||||
const auto* const selected = items[0];
|
||||
const bool enabled = selected->checkState() == Qt::Checked;
|
||||
|
||||
auto& current_ar = m_ar_codes[m_code_list->row(selected)];
|
||||
|
||||
if (current_ar.user_defined)
|
||||
|
|
@ -318,6 +320,9 @@ void ARCodeWidget::OnCodeEditClicked()
|
|||
|
||||
SaveCodes();
|
||||
UpdateList();
|
||||
|
||||
if (!m_restart_required && enabled)
|
||||
ActionReplay::ApplyCodes(m_ar_codes, m_game_id, m_game_revision);
|
||||
}
|
||||
|
||||
void ARCodeWidget::OnCodeRemoveClicked()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue