[+] Added RuntimeHasStarted. Possibly useful for multiple DLL users who have no say in the applications structure.

This commit is contained in:
Reece Wilson 2021-10-24 11:53:14 +01:00
parent fbe151506f
commit 51e3944171
2 changed files with 9 additions and 0 deletions

View File

@ -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();

View File

@ -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)