MainWindow::instance()->showCriticalMessage(tr("FlightGear Failed to Start"),tr("FlightGear was not found at %1").arg(processFgfs));
// MainWindow::instance()->showCriticalMessage(tr("FlightGear Failed to Start"), tr("FlightGear was not found at %1").arg(processFgfs));
sane=false;
// sane = false;
}
// }
QFileInforoot(fgRoot);
// QFileInfo root(fgRoot);
if(!root.isDir())
// if (!root.isDir())
{
// {
MainWindow::instance()->showCriticalMessage(tr("FlightGear Failed to Start"),tr("FlightGear data directory was not found at %1").arg(fgRoot));
// MainWindow::instance()->showCriticalMessage(tr("FlightGear Failed to Start"), tr("FlightGear data directory was not found at %1").arg(fgRoot));
sane=false;
// sane = false;
}
// }
QFileInfoscenery(fgScenery);
// QFileInfo scenery(fgScenery);
if(!scenery.isDir())
// if (!scenery.isDir())
{
// {
MainWindow::instance()->showCriticalMessage(tr("FlightGear Failed to Start"),tr("FlightGear scenery directory was not found at %1").arg(fgScenery));
// MainWindow::instance()->showCriticalMessage(tr("FlightGear Failed to Start"), tr("FlightGear scenery directory was not found at %1").arg(fgScenery));
flightGearArguments<<QString("--fg-scenery=%1:%2").arg(fgScenery).arg(terraSyncScenery);//according to http://wiki.flightgear.org/TerraSync a separate directory is used
flightGearArguments<<QString("--fg-scenery=%1:%2").arg(terraSyncScenery);//according to http://wiki.flightgear.org/TerraSync a separate directory is used