From: mfranz Date: Sun, 29 Jan 2006 20:11:10 +0000 (+0000) Subject: another signal for listener callback functions: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=810d7b2297a4fd5f34fba2b9970907c84cb0e507;p=flightgear.git another signal for listener callback functions: setlistener("/sim/signals/quit", func { print("I'm called on exit.")}); --- diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index 2c2e90df3..4097da790 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -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