Cocos2d-x 之 LUA 小技巧
- 技巧一:打印地址
local luapath = cc.FileUtils:getInstance():getWritablePath()
if string.sub(luapath,-1) ~= "/" then
luapath = luapath .. "/"
end
print("【LuaPrint】luapath : ",luapath)
local luapath = cc.FileUtils:getInstance():getWritablePath()
if string.sub(luapath,-1) ~= "/" then
luapath = luapath .. "/"
end
print("【LuaPrint】luapath : ",luapath)