Changeset 38:128b9ced9779 in xplra for src/plugin/src/xplra/plugin.cc
- Timestamp:
- 02/14/13 16:02:05 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/plugin/src/xplra/plugin.cc
r36 r38 31 31 #include "ListenThread.h" 32 32 33 #include "MessageWindow.h" 34 33 35 #include <hu/varadiistvan/xplcommon/Util.h> 34 36 #include <hu/varadiistvan/scpl/config.h> … … 49 51 50 52 using xplra::ListenThread; 53 using xplra::MessageWindow; 51 54 52 55 using hu::varadiistvan::xplcommon::Util; 53 56 54 57 //------------------------------------------------------------------------------ 58 59 /** 60 * The window to display messages from the clients. 61 */ 62 static MessageWindow* messageWindow = 0; 55 63 56 64 /** … … 89 97 XPLMGetVersions(&xplaneVersion, &xplmVersion, &hostID); 90 98 91 listenThread = new ListenThread(xplaneVersion, xplmVersion); 99 messageWindow = new MessageWindow(); 100 101 listenThread = new ListenThread(xplaneVersion, xplmVersion, 102 *messageWindow); 92 103 listenThread->start(); 93 104 } … … 108 119 Util::debug("hu.varadiistvan.xplra.XPluginDisable called\n"); 109 120 // XPLMUnregisterFlightLoopCallback(&callback, 0); 121 110 122 if (listenThread!=0) { 111 123 listenThread->quit(); 112 124 listenThread = 0; 113 125 } 126 127 delete messageWindow; messageWindow = 0; 114 128 } 115 129
Note:
See TracChangeset
for help on using the changeset viewer.