dolphin/Source/Android
JosJuice 962230f91e Core: Store current state in less places
Core::GetState reads from four different pieces of state: s_is_stopping,
s_hardware_initialized, s_is_booting, and CPUManager::IsStepping.
I'm keeping that last one as is for now because there's code in Dolphin
that sets it directly, but we can unify the other three to make things
easier to reason about.

This commit also gets rid of s_is_started. This was previously used in
Core::IsRunningAndStarted to ensure true wouldn't be returned until the
CPU thread was started, but it wasn't used in Core::GetState, so
Core::GetState would happily return State::Running after we had
initialized the hardware but before we had initialized the CPU thread.
As far as I know, there are no callers that have any real need to know
whether the boot process is currently initializing the hardware or the
CPU thread. Perhaps once upon a time there was a desire to make the
apploader debuggable, but a long time has passed without anyone stepping
up to implement it, and the way CBoot::RunApploader is implemented makes
it rather difficult. So this commit makes all the functions in Core.cpp
consider the core to still be starting until the CPU thread is started.
2024-06-21 20:46:44 +02:00
..
app Merge pull request #12807 from TacoTheDank/cleanupProguard 2024-05-31 17:41:20 +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 Core: Store current state in less places 2024-06-21 20:46:44 +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
gradlew.bat
settings.gradle.kts android: Regenerate baseline profile module for AGP 8.2.0 2023-12-09 15:44:29 -05:00