mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 11:25:33 +08:00
blacklib folder reorganisation
This commit is contained in:
23
src/driver/xplane/driver_xplane.cpp
Normal file
23
src/driver/xplane/driver_xplane.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "driver_xplane.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
Q_DECL_EXPORT ISimulator* BB_createISimulatorInstance ()
|
||||
{
|
||||
return new CDriverXPlane;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
CDriverXPlane::CDriverXPlane()
|
||||
{
|
||||
}
|
||||
|
||||
void CDriverFSX::setLibraryContext(BlackMisc::IContext *context)
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
bAssert(!BlackMisc::IContext::isContextInitialised());
|
||||
#endif
|
||||
|
||||
m_libraryContext = new BlackMisc::CLibraryContext(*context);
|
||||
}
|
||||
17
src/driver/xplane/driver_xplane.h
Normal file
17
src/driver/xplane/driver_xplane.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef DRIVER_XPLANE_H
|
||||
#define DRIVER_XPLANE_H
|
||||
|
||||
#include <simulator.h>
|
||||
|
||||
class CDriverXPlane : public ISimulator
|
||||
{
|
||||
public:
|
||||
CDriverXPlane();
|
||||
virtual int init() {return 1;}
|
||||
|
||||
protected:
|
||||
|
||||
BlackMisc::CLibraryContext *m_libraryContext;
|
||||
};
|
||||
|
||||
#endif // DRIVER_XPLANE_H
|
||||
Reference in New Issue
Block a user