[MSFS] Rename FS2020 to MSFS

This commit is contained in:
Roland Rossgotterer
2021-03-16 10:07:32 +01:00
committed by Mat Sutcliffe
parent 74679137d1
commit 7e04a2c40f
16 changed files with 66 additions and 54 deletions

View File

@@ -83,9 +83,9 @@ namespace BlackMisc
return getSimulator().testFlag(FG);
}
bool CSimulatorInfo::isFS2020() const
bool CSimulatorInfo::isMSFS() const
{
return getSimulator().testFlag(FS2020);
return getSimulator().testFlag(MSFS);
}
bool CSimulatorInfo::isAnySimulator() const
@@ -251,7 +251,7 @@ namespace BlackMisc
{
s |= P3D;
}
if (i.contains("fs2020")) { s |= FS2020; }
if (i.contains("msfs")) { s |= MSFS; }
return s;
}

View File

@@ -54,10 +54,10 @@ namespace BlackMisc
XPLANE = 1 << 2,
P3D = 1 << 3,
FG = 1 << 4,
FS2020 = 1 << 5,
MSFS = 1 << 5,
FSX_P3D = FSX | P3D,
AllFsFamily = FSX | FS9 | P3D | FS2020,
All = FSX | FS9 | XPLANE | P3D | FG | FS2020
AllFsFamily = FSX | FS9 | P3D | MSFS,
All = FSX | FS9 | XPLANE | P3D | FG | MSFS
};
Q_DECLARE_FLAGS(Simulator, SimulatorFlag)
@@ -100,8 +100,8 @@ namespace BlackMisc
//! FG?
bool isFG() const;
//! FS2020?
bool isFS2020() const;
//! MSFS?
bool isMSFS() const;
//! Any simulator?
bool isAnySimulator() const;

View File

@@ -110,9 +110,9 @@ namespace BlackMisc
return s;
}
const QString &CSimulatorPluginInfo::fs2020PluginIdentifier()
const QString &CSimulatorPluginInfo::msfsPluginIdentifier()
{
static const QString s("org.swift-project.plugins.simulator.fs2020");
static const QString s("org.swift-project.plugins.simulator.msfs");
return s;
}
@@ -132,7 +132,7 @@ namespace BlackMisc
fs9PluginIdentifier(),
emulatedPluginIdentifier(),
fgPluginIdentifier(),
fs2020PluginIdentifier()
msfsPluginIdentifier()
});
return identifiers;
}
@@ -148,7 +148,7 @@ namespace BlackMisc
return QStringList
{
fsxPluginIdentifier(),
fs2020PluginIdentifier(),
msfsPluginIdentifier(),
p3dPluginIdentifier(),
xplanePluginIdentifier(),
fgPluginIdentifier()

View File

@@ -88,8 +88,8 @@ namespace BlackMisc
//! Plugin identifier (FlightGear)
static const QString &fgPluginIdentifier();
//! Plugin identifier (FS2020)
static const QString &fs2020PluginIdentifier();
//! Plugin identifier (MSFS 2020)
static const QString &msfsPluginIdentifier();
//! Plugin identifier (emulated simulator plugin)
static const QString &emulatedPluginIdentifier();