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