mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
Add Core::State::Starting
This commit is contained in:
parent
d217e797f2
commit
22a9a08b24
@ -700,6 +700,9 @@ State GetState()
|
||||
return State::Running;
|
||||
}
|
||||
|
||||
if (s_is_booting.IsSet())
|
||||
return State::Starting;
|
||||
|
||||
return State::Uninitialized;
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,8 @@ enum class State
|
||||
Uninitialized,
|
||||
Paused,
|
||||
Running,
|
||||
Stopping
|
||||
Stopping,
|
||||
Starting,
|
||||
};
|
||||
|
||||
bool Init(std::unique_ptr<BootParameters> boot);
|
||||
|
@ -179,7 +179,7 @@ void Init()
|
||||
if (s_handle != nullptr)
|
||||
return;
|
||||
|
||||
if (Core::GetState() != Core::State::Uninitialized)
|
||||
if (Core::GetState() != Core::State::Uninitialized && Core::GetState() != Core::State::Starting)
|
||||
{
|
||||
if ((CoreTiming::GetTicks() - s_last_init) < SystemTimers::GetTicksPerSecond())
|
||||
return;
|
||||
|
@ -195,7 +195,7 @@ void Init()
|
||||
if (s_fd)
|
||||
return;
|
||||
|
||||
if (Core::GetState() != Core::State::Uninitialized)
|
||||
if (Core::GetState() != Core::State::Uninitialized && Core::GetState() != Core::State::Starting)
|
||||
{
|
||||
if ((CoreTiming::GetTicks() - s_last_init) < SystemTimers::GetTicksPerSecond())
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user