mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Android: Use DialogFragment for AlertMessage
This commit is contained in:
@ -170,6 +170,11 @@ void DisplayMessage(std::string message, int time_in_ms)
|
||||
OSD::AddMessage(std::move(message), time_in_ms);
|
||||
}
|
||||
|
||||
bool IsBooting()
|
||||
{
|
||||
return s_is_booting.IsSet() || !s_hardware_initialized;
|
||||
}
|
||||
|
||||
bool IsRunning()
|
||||
{
|
||||
return (GetState() != State::Uninitialized || s_hardware_initialized) && !s_is_stopping;
|
||||
@ -674,7 +679,7 @@ State GetState()
|
||||
|
||||
void WaitUntilDoneBooting()
|
||||
{
|
||||
if (s_is_booting.IsSet() || !s_hardware_initialized)
|
||||
if (IsBooting())
|
||||
s_done_booting.Wait();
|
||||
}
|
||||
|
||||
|
@ -99,6 +99,7 @@ void UndeclareAsCPUThread();
|
||||
|
||||
std::string StopMessage(bool main_thread, std::string_view message);
|
||||
|
||||
bool IsBooting();
|
||||
bool IsRunning();
|
||||
bool IsRunningAndStarted(); // is running and the CPU loop has been entered
|
||||
bool IsRunningInCurrentThread(); // this tells us whether we are running in the CPU thread.
|
||||
|
Reference in New Issue
Block a user