diff options
| author | JosJuice <josjuice@gmail.com> | 2024-07-02 17:27:04 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2024-10-04 18:35:41 +0200 |
| commit | 6ca2da53e86766f54df1ae79e65bb220b41ed7ef (patch) | |
| tree | 4b2fdcf42129d439d532b0cf31b94dfe748969c5 /Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp | |
| parent | 2da3e49b1e876a28c93ad990c71e5d4bb2441f5b (diff) | |
Partially revert "Revert "Audit uses of IsRunning and GetState""
This reverts the revert commit bc67fc97c39628c76a4dbca411b0e8a9bfaf726a,
except for the changes in BaseConfigLoader.cpp, which caused the bug
that made us revert 72cf2bdb87f09deff22e1085de3290126aa4ad05. PR 12917
contains an improved change to BaseConfigLoader.cpp, which can be merged
(or rejected) independently.
A few changes have also been made based on review comments.
Diffstat (limited to 'Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp b/Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp index 3b5ddcb1c1..aa5a0943e0 100644 --- a/Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp +++ b/Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp @@ -159,8 +159,7 @@ void CheatSearchFactoryWidget::OnNewSearchClicked() if (m_standard_address_space->isChecked()) { auto& system = Core::System::GetInstance(); - const Core::State core_state = Core::GetState(system); - if (core_state != Core::State::Running && core_state != Core::State::Paused) + if (!Core::IsRunning(system)) { ModalMessageBox::warning( this, tr("No game running."), |
