mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +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?
|
||||
static constexpr bool isCompiledWithXPlaneSupport(); // defined in buildconfig_gen.inc.in
|
||||
|
||||
//! with any simulator libraries
|
||||
static constexpr bool isCompiledWithFlightSimulatorSupport();
|
||||
|
||||
//! Debug build?
|
||||
static constexpr bool isDebugBuild();
|
||||
|
||||
|
||||
@@ -17,11 +17,6 @@ namespace swift::config
|
||||
return CBuildConfig::isCompiledWithFs9Support() || CBuildConfig::isCompiledWithFsxSupport() || CBuildConfig::isCompiledWithP3DSupport() || isCompiledWithMSFSSupport() || isCompiledWithMSFS2024Support();
|
||||
}
|
||||
|
||||
constexpr bool CBuildConfig::isCompiledWithFlightSimulatorSupport()
|
||||
{
|
||||
return CBuildConfig::isCompiledWithMsFlightSimulatorSupport() || CBuildConfig::isCompiledWithXPlaneSupport() || CBuildConfig::isCompiledWithFGSupport();
|
||||
}
|
||||
|
||||
constexpr bool CBuildConfig::isRunningOnWindowsNtPlatform()
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
|
||||
@@ -49,10 +49,7 @@ namespace swift::core::context
|
||||
}
|
||||
}
|
||||
|
||||
bool IContextSimulator::isSimulatorAvailable() const
|
||||
{
|
||||
return CBuildConfig::isCompiledWithFlightSimulatorSupport() && !this->getSimulatorPluginInfo().isUnspecified();
|
||||
}
|
||||
bool IContextSimulator::isSimulatorAvailable() const { return !this->getSimulatorPluginInfo().isUnspecified(); }
|
||||
|
||||
bool IContextSimulator::isSimulatorSimulating() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user