20,741
edits
Line 140: | Line 140: | ||
This will ensure that fgcommands that are PUI related won't be available in a non-PUI build. | This will ensure that fgcommands that are PUI related won't be available in a non-PUI build. | ||
We will also need to look for other files accessing the "NewGUI" subsystem <code>grep -nr "NewGUI" -l</code>: | |||
<syntaxhighlight> | |||
Main/subsystemFactory.cxx | |||
Main/fg_scene_commands.cxx | |||
ATC/atcdialog.cxx | |||
ATC/atcdialog.hxx | |||
Autopilot/route_mgr.cxx | |||
</syntaxhighlight> | |||
Since we have excluded $FG_ROOT/GUI from the build and updated fg_init.cxx, we will only need to review/patch these files to ensure that there are no hard-coded references to PUI if it's not available, using the same ifdef based approach. | |||
Obviously, fgdata level resources like menu bindings and/or Nasal code may still try to execute such bindings. | Obviously, fgdata level resources like menu bindings and/or Nasal code may still try to execute such bindings. | ||