Skip to content

Commit

Permalink
Update FunkinLua.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Jun 10, 2024
1 parent 3deb83d commit 3edb1bb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions source/meta/data/scripts/FunkinLua.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2332,12 +2332,15 @@ class FunkinLua {
});
#end

Lua_helper.add_callback(lua, "debugPrint", function(text1:Dynamic = ''2:Dynamic = ''3:Dynamic = ''4:Dynamic = ''5:Dynamic = '') {
for (i in [text12345])
if (i == null)
i = '';
Lua_helper.add_callback(lua, "debugPrint", function(text1:Dynamic = '', text2:Dynamic = '', text3:Dynamic = '', text4:Dynamic = '', text5:Dynamic = ''):Void
{
if (text1 == null) text1 = '';
if (text2 == null) text2 = '';
if (text3 == null) text3 = '';
if (text4 == null) text4 = '';
if (text5 == null) text5 = '';

luaTrace('' + text1 + text2 + text3 + text4 + text5, true, false);
luaTrace(text1 + text2 + text3 + text4 + text5, true, false);
});

Lua_helper.add_callback(lua, "close", function() {
Expand Down

0 comments on commit 3edb1bb

Please sign in to comment.