Changeset 81:f28f1b8f3ef7 in xplra for src/plugin/src/xplra/ServerThread.cc
- Timestamp:
- 05/12/13 05:16:48 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/plugin/src/xplra/ServerThread.cc
r46 r81 40 40 #include "SetMultiDataRefRequest.h" 41 41 #include "ReloadPluginsRequest.h" 42 #ifdef XPLM200 43 #include "SaveSituationRequest.h" 44 #endif 42 45 #include "MessageRequest.h" 43 46 #include "Globals.h" … … 170 173 } else if (command==Protocol::COMMAND_RELOAD_PLUGINS) { 171 174 if (!handleReloadPlugins()) break; 175 #ifdef XPLM200 176 } else if (command==Protocol::COMMAND_SAVE_SITUATION) { 177 if (!handleSaveSituation()) break; 178 #endif 172 179 } else if (command==Protocol::COMMAND_SHOW_MESSAGE) { 173 180 if (!handleShowMessage()) break; … … 446 453 //------------------------------------------------------------------------------ 447 454 455 #ifdef XPLM200 456 457 bool ServerThread::handleSaveSituation() 458 { 459 string path = stream.readString(); 460 SaveSituationRequest request(path); 461 if (!requestQueue.execute(&request)) return false; 462 463 stream.writeU8(request.getSuccess() ? Protocol::RESULT_OK : 464 Protocol::RESULT_OTHER_ERROR); 465 466 return true; 467 } 468 469 #endif 470 471 //------------------------------------------------------------------------------ 472 448 473 bool ServerThread::handleShowMessage() 449 474 {
Note:
See TracChangeset
for help on using the changeset viewer.