mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Issue #77 Break cyclic dependency between CSimulatorInfo and CSimulatorPluginInfo by moving a method from one to the other
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
*/
|
||||
|
||||
#include "blackconfig/buildconfig.h"
|
||||
#include "blackmisc/simulation/simulatorplugininfo.h"
|
||||
#include "blackmisc/simulation/fscommon/fscommonutil.h"
|
||||
#include "blackmisc/simulation/simulatorinfo.h"
|
||||
#include "blackmisc/simulation/xplane/xplaneutil.h"
|
||||
@@ -218,19 +217,6 @@ namespace BlackMisc
|
||||
m_simulator = (m_simulator ^ static_cast<int>(All)) & static_cast<int>(All);
|
||||
}
|
||||
|
||||
const QString &CSimulatorInfo::toPluginIdentifier() const
|
||||
{
|
||||
static const QString e;
|
||||
if (!this->isSingleSimulator()) { return e; }
|
||||
const Simulator s = getSimulator();
|
||||
if (s.testFlag(FSX)) { return CSimulatorPluginInfo::fsxPluginIdentifier(); }
|
||||
if (s.testFlag(FS9)) { return CSimulatorPluginInfo::fs9PluginIdentifier(); }
|
||||
if (s.testFlag(P3D)) { return CSimulatorPluginInfo::p3dPluginIdentifier(); }
|
||||
if (s.testFlag(XPLANE)) { return CSimulatorPluginInfo::xplanePluginIdentifier(); }
|
||||
if (s.testFlag(FG)) { return CSimulatorPluginInfo::fgPluginIdentifier(); }
|
||||
return e;
|
||||
}
|
||||
|
||||
CStatusMessage CSimulatorInfo::validateSimulatorsForModel() const
|
||||
{
|
||||
CStatusMessage m(this);
|
||||
|
||||
Reference in New Issue
Block a user