252
edits
No edit summary |
|||
Line 5: | Line 5: | ||
When Flightgear starts, it will start the Nasal parser and load modules from FGDATA/Nasal. | When Flightgear starts, it will start the Nasal parser and load modules from FGDATA/Nasal. | ||
== | == Core modules == | ||
The nasal root folder (FGDATA/Nasal/) is scanned for .nas files and these files are loaded (apparantly in alphabetical order). | The nasal root folder (FGDATA/Nasal/) is scanned for .nas files and these files are loaded (apparantly in alphabetical order). | ||
After all .nas files are loaded <nowiki>sim/signals/nasal-dir-initialized</nowiki> is set, which triggers listeners in some of the files just loaded. | After all .nas files are loaded <nowiki>/sim/signals/nasal-dir-initialized</nowiki> is set, which triggers listeners in some of the files just loaded. | ||
This allows to use functions from other core files, which have just been defined, e.g. which were not yet available when parsing the file. | This allows to use functions from other core files, which have just been defined, e.g. which were not yet available when parsing the file. | ||
edits