mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +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);
|
||||
}
|
||||
15
src/driver/xplane/driver_xplane.h
Normal file
15
src/driver/xplane/driver_xplane.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef DRIVER_XPLANE_H
|
||||
#define DRIVER_XPLANE_H
|
||||
|
||||
#include <simulator.h>
|
||||
|
||||
class CDriverXPlane : public ISimulator
|
||||
{
|
||||
public:
|
||||
CDriverXPlane();
|
||||
virtual ~CDriverXPlane();
|
||||
|
||||
virtual int init();
|
||||
};
|
||||
|
||||
#endif // DRIVER_XPLANE_H
|
||||
Reference in New Issue
Block a user