Hello, I like the idea of your library and I am trying to understand how it works.
Can you please talk a little bit about the mechanism that you used to pass data from JS to Lua?
FS = {};
FS.writeFile = function(where, content)
{
__storeWebDB(content, "FILE_DATA", where);
}
I can see that FS.writeFile is only referenced from js.lua, so I am assuming that it is not called by the love.js.
function JS.stringFunc(str, ...)
str = "(function(){"..str.."})()"
if(#arg > 0) then
I think the code above should be:
function JS.stringFunc(str, ...)
str = "(function(){"..str.."})()"
local arg = { ... }
if(#arg > 0) then
The _G.arg variable in Lua/Love2d refers to the application's command line arguments.
Hello, I like the idea of your library and I am trying to understand how it works.
Can you please talk a little bit about the mechanism that you used to pass data from JS to Lua?
I can see that FS.writeFile is only referenced from js.lua, so I am assuming that it is not called by the love.js.
I think the code above should be:
The _G.arg variable in Lua/Love2d refers to the application's command line arguments.