#include <simgear/misc/commands.hxx>
+#include <simgear/misc/sg_path.hxx>
#include <Environment/environment_mgr.hxx>
mag( NULL ),
autopilot( NULL ),
route( NULL ),
+ current_panel( NULL ),
soundmgr( NULL ),
environment_mgr( NULL ),
ATC_mgr( NULL ),
ATC_display( NULL ),
AI_mgr( NULL ),
controls( NULL ),
- steam( NULL ),
viewmgr( NULL ),
props( new SGPropertyNode ),
initial_state( NULL ),
locale( NULL ),
commands( new SGCommandMgr ),
model_loader( NULL ),
- texture_loader( NULL ),
acmodel( NULL ),
model_mgr( NULL ),
channel_options_list( NULL ),
}
+// set the fg_root path
+void FGGlobals::set_fg_root (const string &root) {
+ fg_root = root;
+
+ // append /data to root if it exists
+ SGPath tmp( fg_root );
+ tmp.append( "data" );
+ tmp.append( "version" );
+ if ( ulFileExists( tmp.c_str() ) ) {
+ fg_root += "/data";
+ }
+}
+
+
FGSubsystemMgr *
FGGlobals::get_subsystem_mgr () const
{