dolphin/Source/Core/DolphinQt/Config
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
..
ConfigControls InterfacePane: Add BalloonTip to cursor visible radio buttons 2024-05-31 19:09:00 +02:00
ControllerInterface DolphinQt: Set window decorations for all top-level QWidgets. 2023-08-12 16:54:54 +02:00
Graphics Audit uses of IsRunning and GetState 2024-06-21 20:52:55 +02:00
Mapping DolphinQt/Mapping: Disable relative input when "Mouse Controlled Pointing" button is pressed. 2024-04-15 14:52:26 -05:00
ToolTipControls DolphinQt: Fix BalloonTip positioning on secondary monitors. 2024-03-20 03:13:11 -05:00
ARCodeWidget.cpp CheatsManager: Allow making the window smaller 2024-03-31 13:17:56 -07:00
ARCodeWidget.h Disable cheats in hardcore mode 2023-12-02 16:41:17 -05:00
CheatCodeEditor.cpp
CheatCodeEditor.h
CheatWarningWidget.cpp Audit uses of IsRunning and GetState 2024-06-21 20:52:55 +02:00
CheatWarningWidget.h
CommonControllersWidget.cpp DolphinQt: Set window decorations for all top-level QWidgets. 2023-08-12 16:54:54 +02:00
CommonControllersWidget.h
ControllersWindow.cpp
ControllersWindow.h
FilesystemWidget.cpp DolphinQt: Properly Delete (Some) Widgets 2024-04-30 11:17:28 -07:00
FilesystemWidget.h
FreeLookWidget.cpp AchievementManager: Make GetInstance() return a reference 2023-12-11 13:36:39 -05:00
FreeLookWidget.h Qt: Rename GraphicsChoice to ConfigChoice 2023-04-25 11:39:24 -07:00
FreeLookWindow.cpp Disable Freelook in hardcore mode 2023-12-02 16:41:16 -05:00
FreeLookWindow.h Disable Freelook in hardcore mode 2023-12-02 16:41:16 -05:00
GameConfigEdit.cpp
GameConfigEdit.h
GameConfigHighlighter.cpp DolphinQt: Adjust panel-specific colors and syntax highlighting for dark theme. 2023-08-12 19:43:12 +02:00
GameConfigHighlighter.h
GameConfigWidget.cpp DolphinQt: Remove unnecessary qOverloads 2023-11-04 14:14:14 -07:00
GameConfigWidget.h Qt/GameConfigWidget: Add Manual Texture Sampling 2023-07-25 00:45:13 +02:00
GamecubeControllersWidget.cpp Core::IsRunning: Avoid Global System Accessor 2024-05-01 08:54:17 -07:00
GamecubeControllersWidget.h
GeckoCodeWidget.cpp CheatsManager: Allow making the window smaller 2024-03-31 13:17:56 -07:00
GeckoCodeWidget.h Disable cheats in hardcore mode 2023-12-02 16:41:17 -05:00
GraphicsModListWidget.cpp Core::GetState: Avoid Global System Accessor 2024-04-08 16:23:23 -07:00
GraphicsModListWidget.h GraphicsModListWidget: Pass optional by const reference 2024-01-31 12:09:35 -05:00
GraphicsModWarningWidget.cpp
GraphicsModWarningWidget.h
HardcoreWarningWidget.cpp Disabled Hardcore Mode when Achievements disabled 2024-05-02 04:44:52 -04:00
HardcoreWarningWidget.h Added Hardcore Warning Widget 2023-12-02 16:41:15 -05:00
InfoWidget.cpp DolphinQt: Remove unnecessary qOverloads 2023-11-04 14:14:14 -07:00
InfoWidget.h
LogConfigWidget.cpp DolphinQt: Fix leak in LogConfigWidget 2023-04-04 16:05:23 -04:00
LogConfigWidget.h
LogWidget.cpp DolphinQt: Remove unnecessary qOverloads 2023-11-04 14:14:14 -07:00
LogWidget.h
NewPatchDialog.cpp DolphinQt: Remove unnecessary qOverloads 2023-11-04 14:14:14 -07:00
NewPatchDialog.h
PatchesWidget.cpp Disable memory patches in hardcore mode 2023-12-02 16:41:16 -05:00
PatchesWidget.h Disable memory patches in hardcore mode 2023-12-02 16:41:16 -05:00
PropertiesDialog.cpp Disable cheats in hardcore mode 2023-12-02 16:41:17 -05:00
PropertiesDialog.h Disable memory patches in hardcore mode 2023-12-02 16:41:16 -05:00
SettingsWindow.cpp
SettingsWindow.h
VerifyWidget.cpp VerifyWidget: Listen for Core::State OnEmulationStateChanged 2024-04-09 12:13:02 -07:00
VerifyWidget.h VerifyWidget: Listen for Core::State OnEmulationStateChanged 2024-04-09 12:13:02 -07:00
WiimoteControllersWidget.cpp Core::GetState: Avoid Global System Accessor 2024-04-08 16:23:23 -07:00
WiimoteControllersWidget.h