mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +08:00
refactor: Remove separate function to check for sim support
This commit is contained in:
@@ -42,9 +42,6 @@ namespace swift::config
|
|||||||
//! with XPlane support?
|
//! with XPlane support?
|
||||||
static constexpr bool isCompiledWithXPlaneSupport(); // defined in buildconfig_gen.inc.in
|
static constexpr bool isCompiledWithXPlaneSupport(); // defined in buildconfig_gen.inc.in
|
||||||
|
|
||||||
//! with any simulator libraries
|
|
||||||
static constexpr bool isCompiledWithFlightSimulatorSupport();
|
|
||||||
|
|
||||||
//! Debug build?
|
//! Debug build?
|
||||||
static constexpr bool isDebugBuild();
|
static constexpr bool isDebugBuild();
|
||||||
|
|
||||||
|
|||||||
@@ -17,11 +17,6 @@ namespace swift::config
|
|||||||
return CBuildConfig::isCompiledWithFs9Support() || CBuildConfig::isCompiledWithFsxSupport() || CBuildConfig::isCompiledWithP3DSupport() || isCompiledWithMSFSSupport() || isCompiledWithMSFS2024Support();
|
return CBuildConfig::isCompiledWithFs9Support() || CBuildConfig::isCompiledWithFsxSupport() || CBuildConfig::isCompiledWithP3DSupport() || isCompiledWithMSFSSupport() || isCompiledWithMSFS2024Support();
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr bool CBuildConfig::isCompiledWithFlightSimulatorSupport()
|
|
||||||
{
|
|
||||||
return CBuildConfig::isCompiledWithMsFlightSimulatorSupport() || CBuildConfig::isCompiledWithXPlaneSupport() || CBuildConfig::isCompiledWithFGSupport();
|
|
||||||
}
|
|
||||||
|
|
||||||
constexpr bool CBuildConfig::isRunningOnWindowsNtPlatform()
|
constexpr bool CBuildConfig::isRunningOnWindowsNtPlatform()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
|
|||||||
@@ -49,10 +49,7 @@ namespace swift::core::context
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IContextSimulator::isSimulatorAvailable() const
|
bool IContextSimulator::isSimulatorAvailable() const { return !this->getSimulatorPluginInfo().isUnspecified(); }
|
||||||
{
|
|
||||||
return CBuildConfig::isCompiledWithFlightSimulatorSupport() && !this->getSimulatorPluginInfo().isUnspecified();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool IContextSimulator::isSimulatorSimulating() const
|
bool IContextSimulator::isSimulatorSimulating() const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user