mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 10:55:32 +08:00
initial preparation for xplane driver
This commit is contained in:
@@ -2,22 +2,30 @@
|
|||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
Q_DECL_EXPORT ISimulator* BB_createISimulatorInstance ()
|
Q_DECL_EXPORT ISimulator* BB_createISimulatorInstance()
|
||||||
{
|
{
|
||||||
return new CDriverXPlane;
|
return new CDriverXPlane;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
CDriverXPlane::CDriverXPlane()
|
CDriverXPlane::CDriverXPlane()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void CDriverFSX::setLibraryContext(BlackMisc::IContext *context)
|
CDriverXPlane::~CDriverXPlane()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
int CDriverXPlane::init()
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CDriverXPlane::setLibraryContext(BlackMisc::IContext *context)
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
bAssert(!BlackMisc::IContext::isContextInitialised());
|
bAssert(!BlackMisc::IContext::isContextInitialised());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_libraryContext = new BlackMisc::CLibraryContext(*context);
|
mLibraryContext = new BlackMisc::CLibraryContext(*context);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,11 +7,9 @@ class CDriverXPlane : public ISimulator
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CDriverXPlane();
|
CDriverXPlane();
|
||||||
virtual int init() {return 1;}
|
virtual ~CDriverXPlane();
|
||||||
|
|
||||||
protected:
|
virtual int init();
|
||||||
|
|
||||||
BlackMisc::CLibraryContext *m_libraryContext;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // DRIVER_XPLANE_H
|
#endif // DRIVER_XPLANE_H
|
||||||
|
|||||||
Reference in New Issue
Block a user