mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
refs #487 Implement IAircraftModelLoader for XPlane
This commit is contained in:
committed by
Mathew Sutcliffe
parent
94901b7846
commit
4fc2db14ca
@@ -8,9 +8,14 @@
|
||||
*/
|
||||
|
||||
#include "aircraftmodelloader.h"
|
||||
#include "blackmisc/blackmiscfreefunctions.h"
|
||||
#include "blackmisc/simulation/fscommon/aircraftcfgparser.h"
|
||||
#include "blackmisc/simulation/xplane/aircraftmodelloaderxplane.h"
|
||||
#include "blackmisc/simulation/xplane/xplaneutil.h"
|
||||
|
||||
|
||||
using namespace BlackMisc::Simulation::FsCommon;
|
||||
using namespace BlackMisc::Simulation::XPlane;
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
@@ -54,8 +59,9 @@ namespace BlackMisc
|
||||
{
|
||||
if (simInfo.xplane())
|
||||
{
|
||||
Q_ASSERT_X(false, Q_FUNC_INFO, "Not yet implemented.");
|
||||
return nullptr;
|
||||
return make_unique<CAircraftModelLoaderXPlane>(
|
||||
CSimulatorInfo(CSimulatorInfo::XPLANE),
|
||||
CXPlaneUtil::xbusLegacyDir());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user