]> git.mxchange.org Git - flightgear.git/commit
Support optional Nasal modules in fgdata/Nasal/MyModuleFoo
authorThorstenB <brehmt@gmail.com>
Sat, 2 Apr 2011 13:13:29 +0000 (15:13 +0200)
committerThorstenB <brehmt@gmail.com>
Sat, 2 Apr 2011 13:15:59 +0000 (15:15 +0200)
commit298f832d4313cdba882ca5a398efdbc7a3599789
tree62d2a2000bfa983eb5d564efe069552f6b5e8513
parent4141b80b0ccd2ddc6cf023672f7ffae3c2024b00
Support optional Nasal modules in fgdata/Nasal/MyModuleFoo
- Allow structuring generic Nasal sources into modules (i.e. support
  separate source folders for multiplayer/local weather/... sources)
- Option to enable/disable loading of generic Nasal modules (i.e we only
  need to load stuff that is really needed/enabled).
- Provide basic loading sequence: subfolders are strictly loaded _after_
  the base directory. So submodules can rely on .nas-scripts like math.nas,
  io.nas, debug.nas, ... to be already loaded - dropping the need for
  awkward listeners/timers to delay module initialization (loading order
  within Nasal/*.nas is still random)
src/Scripting/NasalSys.cxx
src/Scripting/NasalSys.hxx