mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Returning correct app failure codes if the app quits before finishing initialisation.
This commit is contained in:
parent
4604767220
commit
de1d07090a
2 changed files with 2 additions and 2 deletions
|
|
@ -232,7 +232,7 @@ int JUCEApplicationBase::main()
|
|||
jassert (app != nullptr);
|
||||
|
||||
if (! app->initialiseApp())
|
||||
return 0;
|
||||
return app->getApplicationReturnValue();
|
||||
|
||||
JUCE_TRY
|
||||
{
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ JUCE_JNI_CALLBACK (JUCE_ANDROID_ACTIVITY_CLASSNAME, launchApp, void, (JNIEnv* en
|
|||
|
||||
JUCEApplicationBase* app = JUCEApplicationBase::createInstance();
|
||||
if (! app->initialiseApp())
|
||||
exit (0);
|
||||
exit (app->getApplicationReturnValue());
|
||||
|
||||
jassert (MessageManager::getInstance()->isThisTheMessageThread());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue