dolphin/Source/Core/DolphinQt/NetPlay
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
..
ChunkedProgressDialog.cpp Remove most uses of StringFromFormat in favor of fmt 2022-10-12 16:50:47 -07:00
ChunkedProgressDialog.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
GameDigestDialog.cpp NetPlay: use sha1 instead of md5 2022-08-02 22:25:05 -07:00
GameDigestDialog.h NetPlay: rename md5 -> game digest 2022-08-02 22:25:05 -07:00
GameListDialog.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
GameListDialog.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
NetPlayBrowser.cpp DolphinQt: Properly Delete (Some) Widgets 2024-04-30 11:17:28 -07:00
NetPlayBrowser.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
NetPlayDialog.cpp Audit uses of IsRunning and GetState 2024-06-21 20:52:55 +02:00
NetPlayDialog.h Traversal: Notify user of TTL to be used 2023-05-20 17:15:10 +02:00
NetPlaySetupDialog.cpp NetPlaySetupDialog: Fix spacing in Connect tab 2023-11-25 13:14:45 -08:00
NetPlaySetupDialog.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
PadMappingDialog.cpp DolphinQt: Remove unnecessary qOverloads 2023-11-04 14:14:14 -07:00
PadMappingDialog.h NetPlay: GBA Support 2021-07-13 16:43:59 +02:00