changed the way callbacks work internally

This commit is contained in:
Redo
2019-09-15 04:43:54 -05:00
parent 1926d21962
commit 46f8d92ed2
2 changed files with 15 additions and 11 deletions

View File

@@ -96,8 +96,8 @@ function lualogic_send(%data)
{
if(isObject(LuaLogicTCP) && LuaLogicTCP.isConnected)
{
while(strpos(%data, ";;") != -1)
%data = strReplace(%data, ";;", "; ;");
//while(strpos(%data, ";;") != -1)
// %data = strReplace(%data, ";;", "; ;");
if(strlen(LuaLogicTCP.data) + strlen(%data) >= 1024)
LuaLogicTCP.sendData();
@@ -123,6 +123,10 @@ function lualogic_sendoptions()
lualogic_send("OPT;FX_TIME;" @ $Pref::Server::LuaLogic::OPT_FX_TIME);
}
function lualogic_savedata(){
lualogic_send("SAVE");
}
function lualogic_sendinput(%gate, %argc, %arg0, %arg1, %arg2, %arg3, %arg4, %arg5, %arg6, %arg7, %arg8, %arg9, %arg10, %arg11, %arg12, %arg13, %arg14, %arg15)
{
%args = %arg0;