From 2af373e13a900a98801f6077ff547a2f8c4b581b Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 21 Jan 2007 19:52:49 +0000 Subject: [PATCH] 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. --- src/Scripting/NasalSys.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 8e254f5ff..c486ce90c 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -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();