X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Ffg_init.hxx;h=8b741c26136ca131d833df2238277e95bdffa487;hb=88bfaca2b3d4034321ac786f06b074e5590735ee;hp=ffadf6d22507b5d8fe6a3b8b79c1a74c9bf8231d;hpb=0cda3cbfb2754aa77aa2699720fd0c57cfb9b9d4;p=flightgear.git diff --git a/src/Main/fg_init.hxx b/src/Main/fg_init.hxx index ffadf6d22..8b741c261 100644 --- a/src/Main/fg_init.hxx +++ b/src/Main/fg_init.hxx @@ -30,15 +30,19 @@ // forward decls class SGPropertyNode; +class SGPath; // Return the current base package version -std::string fgBasePackageVersion(); +std::string fgBasePackageVersion(const SGPath& path); bool fgInitHome(); // Read in configuration (file and command line) -int fgInitConfig ( int argc, char **argv ); +int fgInitConfig ( int argc, char **argv, bool reinit ); +void fgInitAircraftPaths(bool reinit); + +int fgInitAircraft(bool reinit); // log various settings / configuration state void fgOutputSettings(); @@ -55,23 +59,20 @@ bool fgInitGeneral (); // Create all the subsystems needed by the sim -void fgCreateSubsystems(); +void fgCreateSubsystems(bool duringReset); // called after the subsystems have been bound and initialised, // to peform final init void fgPostInitSubsystems(); - -// Reset: this is what the 'reset' command (and hence, GUI) is attached to -void fgReInitSubsystems(); - -/* - * Search in the current directory, and in on directory deeper - * for -set.xml configuration files and show the aircaft name - * and the contents of the tag in a sorted manner. - * - * @parampath the directory to search for configuration files - */ -void fgShowAircraft(const SGPath &path); + +// Re-position: when only location is changing, we can do considerably +// less work than a full re-init. +void fgStartReposition(); + +void fgStartNewReset(); + +// setup the package system including the global root +void fgInitPackageRoot(); #endif // _FG_INIT_HXX