diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 5e91d5ec9..12c038151 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -527,6 +527,20 @@ bool fgInitGeneral() { return true; } +// Write various configuraton values out to the logs +void fgOutputSettings() +{ + SG_LOG( SG_GENERAL, SG_INFO, "Configuration State" ); + SG_LOG( SG_GENERAL, SG_INFO, "======= ==============" ); + + SG_LOG( SG_GENERAL, SG_INFO, "aircraft-dir = " << '"' << fgGetString("/sim/aircraft-dir") << '"' ); + SG_LOG( SG_GENERAL, SG_INFO, "fghome-dir = " << '"' << globals->get_fg_home() << '"'); + SG_LOG( SG_GENERAL, SG_INFO, "aircraft-dir = " << '"' << fgGetString("/sim/aircraft-dir") << '"'); + + SG_LOG( SG_GENERAL, SG_INFO, "aircraft-search-paths = \n\t" << simgear::strutils::join(globals->get_aircraft_paths(), "\n\t") ); + SG_LOG( SG_GENERAL, SG_INFO, "scenary-search-paths = \n\t" << simgear::strutils::join(globals->get_fg_scenery(), "\n\t") ); +} + // This is the top level init routine which calls all the other // initialization routines. If you are adding a subsystem to flight // gear, its initialization call should located in this routine. diff --git a/src/Main/fg_init.hxx b/src/Main/fg_init.hxx index f79a6f531..b6f7ce2b1 100644 --- a/src/Main/fg_init.hxx +++ b/src/Main/fg_init.hxx @@ -40,6 +40,9 @@ void fgInitHome(); bool fgInitConfig ( int argc, char **argv ); +// log various settings / configuration state +void fgOutputSettings(); + // Initialize the localization SGPropertyNode *fgInitLocale(const char *language); diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 1f885e7c2..ebb72641a 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -357,6 +357,8 @@ int fgMainInit( int argc, char **argv ) { ATIScreenSizeHack(); } + fgOutputSettings(); + // pass control off to the master event handler int result = fgOSMainLoop();