1
0
Fork 0

raise signal "/sim/signals/nasal-dir-initialized" when all Nasal files

in $FG_ROOT/Nasal/* were loaded and executed, and thus all Nasal library
functions are available. This was in the past only done with settimer(..., 0),
constructions, but suchlike triggered timer functions are executed
*after* aircraft specific Nasal files were loaded, so they can't be
used for internal library initialization, where e.g. props.Node() is
already needed.
This commit is contained in:
mfranz 2007-01-21 19:52:49 +00:00
parent 2105d6744d
commit 2af373e13a

View file

@ -426,6 +426,7 @@ void FGNasalSys::init()
loadModule(fullpath, file.base().c_str());
}
ulCloseDir(dir);
fgSetBool("/sim/signals/nasal-dir-initialized", true);
// Pull scripts out of the property tree, too
loadPropertyScripts();