整理代码
This commit is contained in:
@@ -4,15 +4,7 @@ NONE={}function NULL() end PAPER=love.graphics.newCanvas(1,1)
|
||||
EDITING=""
|
||||
LOADED=false
|
||||
|
||||
--[[
|
||||
Available SYSTEM values:
|
||||
Android
|
||||
iOS
|
||||
Linux
|
||||
macOS
|
||||
Web
|
||||
Windows
|
||||
]]--
|
||||
---@type 'Windows'|'Android'|'Linux'|'iOS'|'macOS'|'Web'
|
||||
SYSTEM=love.system.getOS()
|
||||
WEB_COMPAT_MODE=false
|
||||
if SYSTEM=='OS X' then
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
local __requestQueue={}
|
||||
local _requestCount=0
|
||||
local _Request=
|
||||
{
|
||||
local _Request={
|
||||
command="",
|
||||
currentTime=0,
|
||||
timeOut=2,
|
||||
@@ -29,8 +28,7 @@ function JS.stringFunc(str,...)
|
||||
return str
|
||||
end
|
||||
|
||||
--The call will store in the webDB the return value from the function passed
|
||||
--it timeouts
|
||||
--The call will store in the webDB the return value from the function passed it timeouts
|
||||
local function retrieveJS(funcToCall,filename)
|
||||
--Used for retrieveData function
|
||||
JS.callJS(("FS.writeFile('%s/%s',%s);"):format(love.filesystem.getSaveDirectory(),filename,funcToCall))
|
||||
@@ -139,10 +137,6 @@ JS.setDefaultErrorFunction(function(id,error)
|
||||
end)
|
||||
|
||||
|
||||
JS.callJS(JS.stringFunc(
|
||||
[[
|
||||
__getWebDB("%s");
|
||||
]]
|
||||
, "__LuaJSDB"))
|
||||
JS.callJS(JS.stringFunc("__getWebDB("%s");","__LuaJSDB"))
|
||||
|
||||
return JS
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
if SYSTEM=='Web' then
|
||||
return {
|
||||
update=NULL
|
||||
}
|
||||
return {update=NULL}
|
||||
end
|
||||
|
||||
local appId='1288557386700951554'
|
||||
|
||||
Reference in New Issue
Block a user