dolphin-emulator/Source/Core
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
..
AudioCommon Android: Implement OpenSLESStream::SetRunning 2024-06-04 19:32:04 +02:00
Common Merge pull request #12830 from VampireFlower/aliases 2024-06-10 18:35:40 +02:00
Core Core: Store current state in less places 2024-06-21 20:46:44 +02:00
DiscIO Use a stub AchivementManager when USE_RETRO_ACHIEVEMENTS isn't defined 2024-06-06 08:26:20 +02:00
DolphinNoGUI Merge pull request #12760 from AdmiralCurtiss/win-cmake-fix 2024-05-05 19:40:25 +02:00
DolphinQt Core: Store current state in less places 2024-06-21 20:46:44 +02:00
DolphinTool Suppress extract success message when quiet flag is set 2024-06-06 17:55:59 -04:00
InputCommon Merge pull request #12711 from jordan-woyak/modifier-range-ini-default 2024-05-21 22:11:42 +02:00
MacUpdater ScmRevGen: Generate Info.plist for MacUpdater 2024-04-21 13:28:21 -04:00
UICommon Merge pull request #12736 from mitaclaw/minizip-ng-update 2024-05-21 22:21:56 +02:00
UpdaterCommon
VideoBackends Merge pull request #12537 from TellowKrinkle/MTLSubgroup 2024-05-21 22:17:22 +02:00
VideoCommon Core: Store current state in less places 2024-06-21 20:46:44 +02:00
WinUpdater
CMakeLists.txt
DolphinLib.ARM64.props
DolphinLib.props VideoCommon: Use GetSpanForAddress safely in texture decoding 2024-04-20 18:31:08 +02:00
DolphinLib.vcxproj Externals: Convert minizip-ng To Submodule 2024-05-03 12:43:33 -07:00
DolphinLib.vcxproj.user
DolphinLib.x64.props