Use lua-5.4.3 as default plainlua version

see also: #332
This commit is contained in:
halx99 2021-10-08 16:15:33 +08:00
parent 73add5df3f
commit efce326cd9
4 changed files with 10 additions and 1 deletions

View File

@ -23,6 +23,7 @@ THE SOFTWARE.
]]
-- Cocos2d-Lua core functions
local unpack = table.unpack
cc.loaded_packages = {}
local loaded_packages = cc.loaded_packages

View File

@ -22,6 +22,7 @@ THE SOFTWARE.
]]
local unpack = table.unpack
local transition = {}
local ACTION_EASING = {}

View File

@ -22,13 +22,18 @@ THE SOFTWARE.
]]
-- lua-5.4
-- >= lua-5.4
if (math.pow == nil) then
math.pow = function (x,y)
return x ^ y
end
end
-- < lua-5.4
if (unpack) then
table.unpack = unpack
end
require "cocos.cocos2d.Cocos2d"
require "cocos.cocos2d.Cocos2dConstants"
require "cocos.cocos2d.functions"

View File

@ -1,3 +1,5 @@
local unpack = table.unpack
if nil == cc.XMLHttpRequest then
return
end