From 810d7b2297a4fd5f34fba2b9970907c84cb0e507 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 29 Jan 2006 20:11:10 +0000 Subject: [PATCH] another signal for listener callback functions: setlistener("/sim/signals/quit", func { print("I'm called on exit.")}); --- src/Main/fg_commands.cxx | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5