diff -r 05cf35103206 -r 78d6b99ddcb0 qmlFrontend/hwengine.cpp --- a/qmlFrontend/hwengine.cpp Thu Nov 19 23:04:53 2015 +0300 +++ b/qmlFrontend/hwengine.cpp Thu Nov 19 23:32:28 2015 +0300 @@ -36,6 +36,7 @@ connectOfficialServer_t * flibConnectOfficialServer; passNetData_t * flibPassNetData; + sendChatLine_t * flibSendChatLine; } Q_DECLARE_METATYPE(MessageType); @@ -82,6 +83,7 @@ flibConnectOfficialServer = (connectOfficialServer_t*) hwlib.resolve("connectOfficialServer"); flibPassNetData = (passNetData_t*) hwlib.resolve("passNetData"); + flibSendChatLine = (sendChatLine_t*) hwlib.resolve("sendChatLine"); flibInit("/usr/home/unC0Rr/Sources/Hedgewars/Hedgewars-GC/share/hedgewars/Data", "/usr/home/unC0Rr/.hedgewars"); flibRegisterUIMessagesCallback(this, &guiMessagesCallback); @@ -273,6 +275,11 @@ flibConnectOfficialServer(); } +void HWEngine::sendChatMessage(const QString &msg) +{ + flibSendChatLine(msg.toUtf8().constData()); +} + void HWEngine::setTheme(const QString &theme) { flibSetTheme(theme.toUtf8().constData());