Minor APT behaviour change
This commit is contained in:
parent
7e10620b7f
commit
e2b1da4d80
@ -55,16 +55,16 @@ __attribute__((weak)) void _aptDebug(int a, int b)
|
||||
|
||||
static void aptAppStarted(void);
|
||||
|
||||
static bool aptIsCrippled(void)
|
||||
{
|
||||
return (__system_runflags & RUNFLAG_APTWORKAROUND) != 0;
|
||||
}
|
||||
|
||||
static bool aptIsReinit(void)
|
||||
{
|
||||
return (__system_runflags & RUNFLAG_APTREINIT) != 0;
|
||||
}
|
||||
|
||||
static bool aptIsCrippled(void)
|
||||
{
|
||||
return (__system_runflags & RUNFLAG_APTWORKAROUND) != 0 && !aptIsReinit();
|
||||
}
|
||||
|
||||
static Result __apt_initservicehandle()
|
||||
{
|
||||
Result ret=0;
|
||||
@ -510,7 +510,7 @@ void aptExit()
|
||||
if(!aptIsCrippled())
|
||||
{
|
||||
bool isReinit = aptIsReinit();
|
||||
if (aptGetStatus() == APP_EXITING)
|
||||
if (aptGetStatus() == APP_EXITING || !isReinit)
|
||||
{
|
||||
aptOpenSession();
|
||||
APT_PrepareToCloseApplication(NULL, 0x1);
|
||||
|
Loading…
Reference in New Issue
Block a user