Restore aircraft-manager location back to FG_HOME
This commit is contained in:
parent
7d9609116b
commit
ee61a07636
1 changed files with 9 additions and 8 deletions
|
@ -504,15 +504,16 @@ static void initAircraftDirsNasalSecurity()
|
|||
void fgInitAircraftPaths(bool reinit)
|
||||
{
|
||||
if (!reinit) {
|
||||
SGPath userAircraftDir = SGPath::documents(globals->get_fg_home());
|
||||
if (userAircraftDir != globals->get_fg_home()) {
|
||||
userAircraftDir.append("FlightGear");
|
||||
}
|
||||
userAircraftDir.append("Aircraft");
|
||||
// there is some debate if we should be using FG_HOME here (hidden
|
||||
// location) vs a user-visible location inside Documents (especially on
|
||||
// Windows and Mac). Really this location should be managed by FG, not
|
||||
// the user, but it can potentially grow large.
|
||||
SGPath packageAircraftDir = globals->get_fg_home();
|
||||
packageAircraftDir.append("Aircraft");
|
||||
|
||||
SGSharedPtr<Root> pkgRoot(new Root(userAircraftDir, FLIGHTGEAR_VERSION));
|
||||
// set the http client later (too early in startup right now)
|
||||
globals->setPackageRoot(pkgRoot);
|
||||
SGSharedPtr<Root> pkgRoot(new Root(packageAircraftDir, FLIGHTGEAR_VERSION));
|
||||
// set the http client later (too early in startup right now)
|
||||
globals->setPackageRoot(pkgRoot);
|
||||
}
|
||||
|
||||
SGSharedPtr<Root> pkgRoot(globals->packageRoot());
|
||||
|
|
Loading…
Add table
Reference in a new issue