mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Ref T197, simulator info
* CSimulatorInfo only initialized once and not over and over again in plugin info * getSimulatorInfo() no longer virtual, as we can access the member CSimulatorInfo directly * display exact simualtor in FSX/P3D driver * renamed to identifierToSimulator and fixed typo "Identifier"
This commit is contained in:
@@ -32,9 +32,9 @@ namespace BlackCore
|
||||
return status;
|
||||
}
|
||||
|
||||
CSimulatorInfo ISimulator::getSimulatorInfo() const
|
||||
const CSimulatorInfo &ISimulator::getSimulatorInfo() const
|
||||
{
|
||||
return CSimulatorInfo(this->getSimulatorPluginInfo().getSimulatorInfo());
|
||||
return this->getSimulatorPluginInfo().getSimulatorInfo();
|
||||
}
|
||||
|
||||
void ISimulator::registerHelp()
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace BlackCore
|
||||
virtual const BlackMisc::Simulation::CSimulatorPluginInfo &getSimulatorPluginInfo() const = 0;
|
||||
|
||||
//! Get simulator info (default implementation)
|
||||
virtual BlackMisc::Simulation::CSimulatorInfo getSimulatorInfo() const;
|
||||
const BlackMisc::Simulation::CSimulatorInfo &getSimulatorInfo() const;
|
||||
|
||||
//! Get the setup (simulator environemnt)
|
||||
virtual const BlackMisc::Simulation::CSimulatorInternals &getSimulatorInternals() const = 0;
|
||||
|
||||
Reference in New Issue
Block a user