diff --git a/Zframework/toolfunc.lua b/Zframework/toolfunc.lua index a5b0735c..5378d632 100644 --- a/Zframework/toolfunc.lua +++ b/Zframework/toolfunc.lua @@ -36,7 +36,7 @@ do--LOADLIB if soFile then local success,message=fs.write(libName.Android,soFile,size) 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 LOG.print(name.." lib loaded","warn",COLOR.green) break diff --git a/parts/scenes/stat.lua b/parts/scenes/stat.lua index 382035fe..2d52869b 100644 --- a/parts/scenes/stat.lua +++ b/parts/scenes/stat.lua @@ -98,7 +98,7 @@ function scene.draw() end 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="back",x=640,y=620,w=200,h=80,font=35,code=WIDGET.lnk_BACK}, }