dolphin/Source/Android
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
..
app Audit uses of IsRunning and GetState 2024-06-21 20:52:55 +02:00
benchmark Android: Update dependencies 2024-04-20 17:53:11 +02:00
gradle/wrapper android: Update AGP to 8.2.0 2023-12-09 15:44:29 -05:00
jni Audit uses of IsRunning and GetState 2024-06-21 20:52:55 +02:00
.gitignore android: Regenerate baseline profile module for AGP 8.2.0 2023-12-09 15:44:29 -05:00
build.gradle.kts android: Regenerate baseline profile module for AGP 8.2.0 2023-12-09 15:44:29 -05:00
code-style-java.xml Android: Update code-style-java for androidx files 2020-09-08 05:59:08 -04:00
gradle.properties Android: Fix Gradle deprecation 2024-05-25 22:13:25 -04:00
gradlew Convert the Android source code to the directory structure of a Gradle-based Android Studio project. 2015-05-02 21:49:17 -04:00
gradlew.bat Convert the Android source code to the directory structure of a Gradle-based Android Studio project. 2015-05-02 21:49:17 -04:00
settings.gradle.kts android: Regenerate baseline profile module for AGP 8.2.0 2023-12-09 15:44:29 -05:00