]> git.mxchange.org Git - flightgear.git/commitdiff
raise signal "/sim/signals/nasal-dir-initialized" when all Nasal files
authormfranz <mfranz>
Sun, 21 Jan 2007 19:52:49 +0000 (19:52 +0000)
committermfranz <mfranz>
Sun, 21 Jan 2007 19:52:49 +0000 (19:52 +0000)
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

index 8e254f5ff551e93c98c04315e54943b6acacfde6..c486ce90ceef9cf55041011757bac05f6efa699e 100644 (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();