mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-02 23:08:00 +03:00
Various fixes to get openmw to compile and run properly
This commit is contained in:
parent
0de4bb9d6c
commit
4a3f6b0ff1
7 changed files with 24 additions and 14 deletions
|
@ -1,6 +1,8 @@
|
|||
#ifndef COMMANDSERVER_COMMAND_HPP
|
||||
#define COMMANDSERVER_COMMAND_HPP
|
||||
|
||||
#include <boost/function.hpp>
|
||||
|
||||
namespace OMW
|
||||
{
|
||||
///
|
||||
|
@ -16,4 +18,4 @@ namespace OMW
|
|||
};
|
||||
}
|
||||
|
||||
#endif COMMANDSERVER_COMMAND_HPP
|
||||
#endif //COMMANDSERVER_COMMAND_HPP
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
using boost::asio::ip::tcp;
|
||||
|
||||
#include <libs/mangle/tools/str_exception.hpp>
|
||||
|
||||
//
|
||||
// Namespace for containing implementation details that the
|
||||
// rest of OpenMW doesn't need to worry about
|
||||
|
@ -103,7 +105,7 @@ namespace OMW { namespace CommandServer { namespace Detail {
|
|||
bDone = true;
|
||||
}
|
||||
else
|
||||
throw std::exception("Unexpected header!");
|
||||
throw str_exception("Unexpected header!");
|
||||
}
|
||||
else
|
||||
bDone = true;
|
||||
|
@ -119,8 +121,8 @@ namespace OMW { namespace CommandServer {
|
|||
|
||||
Server::Server (Deque* pCommandQueue, const int port)
|
||||
: mAcceptor (mIOService, tcp::endpoint(tcp::v4(), port))
|
||||
, mpCommandQueue (pCommandQueue)
|
||||
, mbStopping (false)
|
||||
, mpCommandQueue (pCommandQueue)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue