mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Merge branch 'master' of dev.vatsim-germany.org:vatpilotclient/client
This commit is contained in:
31
src/driver/xplane/driver_xplane.cpp
Normal file
31
src/driver/xplane/driver_xplane.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#include "driver_xplane.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
Q_DECL_EXPORT ISimulator* BB_createISimulatorInstance()
|
||||
{
|
||||
return new CDriverXPlane;
|
||||
}
|
||||
}
|
||||
|
||||
CDriverXPlane::CDriverXPlane()
|
||||
{
|
||||
}
|
||||
|
||||
CDriverXPlane::~CDriverXPlane()
|
||||
{
|
||||
}
|
||||
|
||||
int CDriverXPlane::init()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
void CDriverXPlane::setLibraryContext(BlackMisc::IContext *context)
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
bAssert(!BlackMisc::IContext::isContextInitialised());
|
||||
#endif
|
||||
|
||||
mLibraryContext = new BlackMisc::CLibraryContext(*context);
|
||||
}
|
||||
Reference in New Issue
Block a user