dolphin/Source/Core/DolphinQt/Settings
JosJuice 72cf2bdb87 Audit uses of IsRunning and GetState
Some pieces of code are calling IsRunning because there's some
particular action that only makes sense when emulation is running, for
instance showing the state of the emulated CPU. IsRunning is appropriate
to use for this. Then there are pieces of code that are calling
IsRunning because there's some particular thing they must avoid doing
e.g. when the CPU thread is running or IOS is running. IsRunning isn't
quite appropriate for this. Such code should also be checking for the
states Starting and Stopping. Keep in mind that:

* When the state is Starting, the state can asynchronously change to
  Running at any time.
* When we try to stop the core, the state gets set to Stopping before we
  take any action to actually stop things.

This commit adds a new method Core::IsUninitialized, and changes all
callers of IsRunning and GetState that look to me like they should be
changed.
2024-06-21 20:52:55 +02:00
..
AdvancedPane.cpp Audit uses of IsRunning and GetState 2024-06-21 20:52:55 +02:00
AdvancedPane.h DolphinQt/AdvancedPane: Use ConfigBool for MMU, Pause on Panic, and Write-Back Cache. 2023-08-16 19:25:03 +02:00
AudioPane.cpp Audit uses of IsRunning and GetState 2024-06-21 20:52:55 +02:00
AudioPane.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
BroadbandAdapterSettingsDialog.cpp respond to further review feedback 2024-03-17 18:37:55 -07:00
BroadbandAdapterSettingsDialog.h Implement GC modem adapter 2024-03-17 18:37:55 -07:00
GameCubePane.cpp Core::IsRunning: Avoid Global System Accessor 2024-05-01 08:54:17 -07:00
GameCubePane.h Qt/GameCubePane: Display a warning if a GCI folder override is set. 2022-11-22 17:53:20 +01:00
GeneralPane.cpp Use a stub AchivementManager when USE_RETRO_ACHIEVEMENTS isn't defined 2024-06-06 08:26:20 +02:00
GeneralPane.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
InterfacePane.cpp Use a stub AchivementManager when USE_RETRO_ACHIEVEMENTS isn't defined 2024-06-06 08:26:20 +02:00
InterfacePane.h InterfacePane: Add BalloonTip to user style combobox 2024-05-31 19:10:30 +02:00
PathPane.cpp Resolve "implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20" warning 2022-08-08 11:25:19 +10:00
PathPane.h Qt: Put Wii SD card path and SD sync folder fields in the WiiPane. 2022-07-11 23:11:41 +02:00
USBDeviceAddToWhitelistDialog.cpp Qt: trigger first USB device scan without a timer 2024-04-11 16:48:10 +02:00
USBDeviceAddToWhitelistDialog.h Remove unused includes of QButtonGroup 2022-02-12 11:40:53 -08:00
WiiPane.cpp Audit uses of IsRunning and GetState 2024-06-21 20:52:55 +02:00
WiiPane.h Add default support for WiiLink + configuration 2023-06-25 14:57:15 -04:00