Game Development Community

App not being shutdown properly on the iPhone

by Damir Slogar · in iTorque 2D · 04/27/2009 (7:15 am) · 2 replies

onExit() is not called when running on iPhone.

workaround: in iPhoneMain.mm

void _iPhoneGameWillTerminate(){
	Con::executef( 1, "oniPhoneWillTerminate" );
	Con::executef( 1, "onExit" );
}

or you could add oniPhoneWillTerminate in your script code that does whatever onExit does.

#1
04/27/2009 (10:27 am)
Correct, this has been address, and will be a part of iTGB 1.2.
#2
05/30/2009 (12:52 pm)
Bug logged and fixed for v1.2.1