mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-26 18:14:30 +01:00
962230f91e
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. |
||
---|---|---|
.. | ||
app | ||
benchmark | ||
gradle/wrapper | ||
jni | ||
.gitignore | ||
build.gradle.kts | ||
code-style-java.xml | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
settings.gradle.kts |