2 // fg_init.hxx -- Flight Gear top level initialization routines
4 // Written by Curtis Olson, started August 1997.
6 // Copyright (C) 1997 Curtis L. Olson - http://www.flightgear.org/~curt
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35 // Read in configuration (files and command line optoins) but only set
37 bool fgInitFGRoot ( int argc, char **argv );
40 // Return the current base package version
41 std::string fgBasePackageVersion();
44 // Read in configuration (file and command line)
45 bool fgInitConfig ( int argc, char **argv );
48 // Initialize the localization
49 SGPropertyNode *fgInitLocale(const char *language);
52 // Init navaids and waypoints
56 // General house keeping initializations
57 bool fgInitGeneral ();
60 // This is the top level init routine which calls all the other
61 // initialization routines. If you are adding a subsystem to flight
62 // gear, its initialization call should located in this routine.
63 bool fgInitSubsystems();
66 // Reset: this is what the 'reset' command (and hence, GUI) is attached to
67 void fgReInitSubsystems();
69 // Set the initial position based on presets (or defaults)
70 bool fgInitPosition();
73 // Listen to /sim/tower/airport-id and set tower view position accordingly
74 void fgInitTowerLocationListener();
77 * Search in the current directory, and in on directory deeper
78 * for <aircraft>-set.xml configuration files and show the aircaft name
79 * and the contents of the<description> tag in a sorted manner.
81 * @parampath the directory to search for configuration files
83 void fgShowAircraft(const SGPath &path);
85 #endif // _FG_INIT_HXX