mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +08:00
Don't require air files for MSFS (32 or 64 bit)
This commit is contained in:
@@ -176,7 +176,7 @@ namespace BlackMisc::Simulation::FsCommon
|
|||||||
const int airFilesCount = dirForAir.entryInfoList(QDir::Files | QDir::NoDotAndDotDot, QDir::DirsLast).size();
|
const int airFilesCount = dirForAir.entryInfoList(QDir::Files | QDir::NoDotAndDotDot, QDir::DirsLast).size();
|
||||||
const bool hasAirFiles = airFilesCount > 0;
|
const bool hasAirFiles = airFilesCount > 0;
|
||||||
|
|
||||||
if (CBuildConfig::buildWordSize() != 32 && !hasAirFiles)
|
if (getSimulator().isP3D() && !hasAirFiles)
|
||||||
{
|
{
|
||||||
const CStatusMessage m = CStatusMessage(this).warning(u"No \"air\" files in '%1'") << currentDir;
|
const CStatusMessage m = CStatusMessage(this).warning(u"No \"air\" files in '%1'") << currentDir;
|
||||||
messages.push_back(m);
|
messages.push_back(m);
|
||||||
@@ -204,8 +204,8 @@ namespace BlackMisc::Simulation::FsCommon
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Enforce air files only for 64 bit P3D
|
// Enforce air files only for P3D
|
||||||
if (CBuildConfig::buildWordSize() != 32 && !hasAirFiles) { continue; }
|
if (getSimulator().isP3D() && !hasAirFiles) { continue; }
|
||||||
|
|
||||||
// due to the filter we expect only "aircraft.cfg"/"sim.cfg" here
|
// due to the filter we expect only "aircraft.cfg"/"sim.cfg" here
|
||||||
// remark: in a 1st version I have used QSettings to parse to file as ini file
|
// remark: in a 1st version I have used QSettings to parse to file as ini file
|
||||||
|
|||||||
Reference in New Issue
Block a user