dolphin/Source/Android/jni
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
..
AndroidCommon NativeLibrary: Create displayToastMsg Method 2024-04-06 15:41:23 -07:00
Cheats Common/IniFile: Move interface into Common namespace 2023-04-13 10:19:28 -04:00
Config Android: Expose config changed callbacks 2023-12-07 21:09:17 +01:00
GameList Android: Use JNI for setting/getting ISO paths 2023-09-02 12:58:20 +02:00
Input InputCommon: Unify GetProfileName and GetProfileDirectoryName 2024-02-04 17:55:08 +01:00
CMakeLists.txt Android: Expose config changed callbacks 2023-12-07 21:09:17 +01:00
GpuDriver.cpp Android: Remove a stray backtick 2023-10-01 13:37:04 +02:00
Host.cpp Android: Move host thread lock to a separate file 2023-06-12 23:39:42 +02:00
Host.h Android: And Lock and Unlock wrappers to HostThreadLock 2023-06-12 23:39:42 +02:00
InfinityConfig.cpp Android: Add Hashmap to IDCache 2023-05-28 19:01:21 +12:00
MainAndroid.cpp Audit uses of IsRunning and GetState 2024-06-21 20:52:55 +02:00
RiivolutionPatches.cpp Android: Add Riivolution patch configuration 2021-10-30 23:24:37 +02:00
SkylanderConfig.cpp Skylanders: Improve figure data view and generation 2023-11-05 18:06:10 +01:00
WiiUtils.cpp IOS/ES: Split ESDevice into ESCore and ESDevice. 2023-05-15 20:41:05 +02:00