[+] Added RuntimeHasStarted. Possibly useful for multiple DLL users who have no say in the applications structure.
This commit is contained in:
parent
fbe151506f
commit
51e3944171
@ -208,6 +208,7 @@ namespace Aurora
|
||||
};
|
||||
|
||||
AUKN_SYM void RuntimeStart(const RuntimeStartInfo &info);
|
||||
AUKN_SYM bool RuntimeHasStarted();
|
||||
AUKN_SYM void RuntimeOverloadLocality(const AuPair<AuString, AuString> &locality);
|
||||
AUKN_SYM void RuntimeShutdown();
|
||||
AUKN_SYM void RuntimeSysPump();
|
||||
|
@ -57,14 +57,17 @@ static void Deinit()
|
||||
|
||||
namespace Aurora
|
||||
{
|
||||
static bool gRuntimeHasStarted {};
|
||||
AUKN_SYM void RuntimeStart(const RuntimeStartInfo &info)
|
||||
{
|
||||
gRuntimeConfig = info;
|
||||
Init();
|
||||
gRuntimeHasStarted = true;
|
||||
}
|
||||
|
||||
AUKN_SYM void RuntimeShutdown()
|
||||
{
|
||||
gRuntimeHasStarted = false;
|
||||
Deinit();
|
||||
}
|
||||
|
||||
@ -72,6 +75,11 @@ namespace Aurora
|
||||
{
|
||||
Pump();
|
||||
}
|
||||
|
||||
AUKN_SYM bool RuntimeHasStarted()
|
||||
{
|
||||
return gRuntimeHasStarted;
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(AURORA_PLATFORM_WIN32)
|
||||
|
Loading…
Reference in New Issue
Block a user