win下提醒用户删掉存档内CCloader,声明两个全局变量
This commit is contained in:
@@ -429,7 +429,6 @@ function love.run()
|
||||
|
||||
love.resize(gc.getWidth(),gc.getHeight())
|
||||
SCN.init("load")--Scene Launch
|
||||
marking=true
|
||||
|
||||
return function()
|
||||
local _
|
||||
|
||||
2
main.lua
2
main.lua
@@ -11,6 +11,8 @@
|
||||
--?
|
||||
function NULL()end
|
||||
DBP=print--use this if need debugging print
|
||||
marking=true
|
||||
NOGAME=false
|
||||
|
||||
--Global Setting & Vars
|
||||
math.randomseed(os.time()*626)
|
||||
|
||||
@@ -17,6 +17,7 @@ local blockPos={4,4,4,4,4,5,4}
|
||||
local scs={{0,1},{0,1},{0,1},{0,1},{0,1},{.5,.5},{-.5,1.5}}
|
||||
-------------------------------------------------Cold clear
|
||||
do
|
||||
local fs=love.filesystem
|
||||
if system=="Windows"then
|
||||
local success,message=require("CCloader")
|
||||
if success then
|
||||
@@ -24,9 +25,11 @@ do
|
||||
else
|
||||
LOG.print("Cannot load CC: "..message,"warn",color.red)
|
||||
end
|
||||
if fs.getInfo("CCloader.dll")then
|
||||
NOGAME="delCC"
|
||||
end
|
||||
elseif system=="Android"then
|
||||
local armList={"arm64-v8a","armeabi-v7a"}
|
||||
local fs=love.filesystem
|
||||
local libFunc,success,message
|
||||
for i=1,#armList do
|
||||
local CCloader_f,size=fs.read("data","libAndroid/"..armList[i].."/libCCloader.so")
|
||||
|
||||
@@ -726,12 +726,24 @@ do--intro
|
||||
if k==2 then
|
||||
VOC.play("bye")
|
||||
SCN.back()
|
||||
elseif newVersionLaunch then
|
||||
SCN.push("main","fade")
|
||||
SCN.swapTo("history","fade")
|
||||
LOG.print(text.newVersion,"warn",color.lBlue)
|
||||
elseif NOGAME=="delCC"then
|
||||
LOG.print("Please quit the game, then delete CCloader.dll(21KB) in saving folder!",600,color.yellow)
|
||||
LOG.print("请关闭游戏,然后删除存档文件夹内的 CCloader.dll(21KB) !",600,color.yellow)
|
||||
TASK.new(function(S)
|
||||
S[1]=S[1]-1
|
||||
if S[1]==0 then
|
||||
love.system.openURL(love.filesystem.getSaveDirectory())
|
||||
return true
|
||||
end
|
||||
end,{60})
|
||||
else
|
||||
SCN.go("main")
|
||||
if newVersionLaunch then
|
||||
SCN.push("main","fade")
|
||||
SCN.swapTo("history","fade")
|
||||
LOG.print(text.newVersion,"warn",color.lBlue)
|
||||
else
|
||||
SCN.go("main")
|
||||
end
|
||||
end
|
||||
end
|
||||
function touchDown.intro(id,x,y)
|
||||
|
||||
Reference in New Issue
Block a user