1
0
Fork 0

another signal for listener callback functions:

setlistener("/sim/signals/quit", func { print("I'm called on exit.")});
This commit is contained in:
mfranz 2006-01-29 20:11:10 +00:00
parent 129813e0aa
commit 810d7b2297

View file

@ -192,6 +192,7 @@ static bool
do_exit (const SGPropertyNode * arg)
{
SG_LOG(SG_INPUT, SG_INFO, "Program exit requested.");
fgSetBool("/sim/signals/quit", true);
if (fgGetBool("/sim/startup/save-on-exit")) {
#ifdef _MSC_VER