From 1546ed2894778bbd3c12facb58de10918e76a186 Mon Sep 17 00:00:00 2001 From: VladMordock Date: Mon, 22 Feb 2021 16:32:03 +0100 Subject: [PATCH] Changes after migration to dll --- 01_DCS/Scripts/Hooks/Perun-hook.lua | 2 +- 03_Perun_Lua_Wrapper/perun/src/library.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/01_DCS/Scripts/Hooks/Perun-hook.lua b/01_DCS/Scripts/Hooks/Perun-hook.lua index 379a7fa..7ce1501 100644 --- a/01_DCS/Scripts/Hooks/Perun-hook.lua +++ b/01_DCS/Scripts/Hooks/Perun-hook.lua @@ -236,7 +236,7 @@ end Perun.ConnectToPerun = function () -- Connects to Perun server - Perun.dll_main.connect(Perun.TCPPerunHost, Perun.TCPTargetPort) + Perun.dll_main.tcpConnect(Perun.TCPPerunHost, Perun.TCPTargetPort) Perun.AddLog(string.format("Connecting to TCP server %s:%i", Perun.TCPPerunHost, Perun.TCPTargetPort), 2) end diff --git a/03_Perun_Lua_Wrapper/perun/src/library.cpp b/03_Perun_Lua_Wrapper/perun/src/library.cpp index d16b256..57a1919 100644 --- a/03_Perun_Lua_Wrapper/perun/src/library.cpp +++ b/03_Perun_Lua_Wrapper/perun/src/library.cpp @@ -30,7 +30,7 @@ static int tcpConnect(lua_State* luaState) { } static int tcpSend(lua_State* luaState) { - // Send frame over TCP socket + // Send frame over TCP socket // Send over the socket tcpConnection.socketSendData(new std::string(lua_tolstring(luaState, 1, 0)));