On Sun 23 Aug 2015 11:55:01 AM Jon Rafkind wrote:
> If an android-allegro application is paused before it has a chance to call
> al_init then it will crash, because nativeOnPause() makes use of various
> things, such as al_vector, that will not work until al_init is called.
> 
> I think the function just needs a guard to check if al_init was called
> before it does anything.
> 
> I see that nativeOnResume checks for system_data.system, and if null then
> just returns immediately. Looks reasonable to me.

Hmm, yeah, if the app hasn't actually started yet, then nativeOnPause can't 
really do much can it. Maybe set some stuff to tell nativeOnResume that it 
didn't do anything yet if needed.

-- 
Thomas Fjellstrom
[email protected]

_______________________________________________
Allegro-developers mailing list
[email protected]
https://mail.gna.org/listinfo/allegro-developers

Reply via email to