Write 'fg_root' in the property tree at /sim/fg-root
This commit is contained in:
parent
e475a50ead
commit
ee065ee6ef
1 changed files with 3 additions and 1 deletions
|
@ -117,7 +117,9 @@ void FGGlobals::set_fg_root (const string &root) {
|
||||||
tmp.append( "version" );
|
tmp.append( "version" );
|
||||||
if ( ulFileExists( tmp.c_str() ) ) {
|
if ( ulFileExists( tmp.c_str() ) ) {
|
||||||
fg_root += "/data";
|
fg_root += "/data";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fgSetString("/sim/fg-root", fg_root.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void FGGlobals::set_fg_scenery (const string &scenery) {
|
void FGGlobals::set_fg_scenery (const string &scenery) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue