another signal for listener callback functions:
setlistener("/sim/signals/quit", func { print("I'm called on exit.")});
This commit is contained in:
parent
129813e0aa
commit
810d7b2297
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue