整理代码
This commit is contained in:
@@ -36,7 +36,7 @@ do--LOADLIB
|
|||||||
if soFile then
|
if soFile then
|
||||||
local success,message=fs.write(libName.Android,soFile,size)
|
local success,message=fs.write(libName.Android,soFile,size)
|
||||||
if success then
|
if success then
|
||||||
libFunc,message=package.loadlib(table.concat({fs.getSaveDirectory(),libName.Android},"/"),libName.libFunc)
|
libFunc,message=package.loadlib(table.concat({SAVEDIR,libName.Android},"/"),libName.libFunc)
|
||||||
if libFunc then
|
if libFunc then
|
||||||
LOG.print(name.." lib loaded","warn",COLOR.green)
|
LOG.print(name.." lib loaded","warn",COLOR.green)
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ function scene.draw()
|
|||||||
end
|
end
|
||||||
|
|
||||||
scene.widgetList={
|
scene.widgetList={
|
||||||
WIDGET.newButton{name="path",x=1000,y=540,w=250,h=80,font=25,code=function()love.system.openURL(love.filesystem.getSaveDirectory())end,hide=MOBILE},
|
WIDGET.newButton{name="path",x=1000,y=540,w=250,h=80,font=25,code=function()love.system.openURL(SAVEDIR)end,hide=MOBILE},
|
||||||
WIDGET.newButton{name="save",x=1000,y=640,w=250,h=80,font=25,code=WIDGET.lnk_goScene("savedata")},
|
WIDGET.newButton{name="save",x=1000,y=640,w=250,h=80,font=25,code=WIDGET.lnk_goScene("savedata")},
|
||||||
WIDGET.newButton{name="back",x=640,y=620,w=200,h=80,font=35,code=WIDGET.lnk_BACK},
|
WIDGET.newButton{name="back",x=640,y=620,w=200,h=80,font=35,code=WIDGET.lnk_BACK},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user