Skip to content

Commit

Permalink
整理代码 框架跟进
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Nov 20, 2024
1 parent 68564bd commit 1a56305
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Zenitha
Submodule Zenitha updated 2 files
+2 −2 loadlib.lua
+1 −1 log.lua
23 changes: 10 additions & 13 deletions assets/progress.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,16 @@ function PROGRESS.save(step)
end
function PROGRESS.load()
local suc,res=pcall(FILE.load,'conf/progress','-json -canskip')
if suc then
if res then
TABLE.update(prgs,res)
-- if res.hash==getHash(res) then
-- TABLE.update(prgs,res)
-- else
-- MSG('info',"Hash not match")
-- end
end
prgs.launchCount=prgs.launchCount+1
else
MSG.log('info',"Load progress failed: "..res)
if not suc then return MSG.log('info',"Load progress failed: "..tostring(res)) end
if res then
TABLE.update(prgs,res)
-- if res.hash==getHash(res) then
-- TABLE.update(prgs,res)
-- else
-- MSG('info',"Hash not match")
-- end
end
prgs.launchCount=prgs.launchCount+1
end
function PROGRESS.fix()
if type(prgs.interiorScore.tutorial)=='table' then
Expand Down Expand Up @@ -193,7 +190,7 @@ function PROGRESS.applyCoolWaitTemplate()
local list={}
for i=1,52 do list[i]=('assets/image/loading/%d.png'):format(i) end
local suc,res=pcall(gc.newArrayImage,list)
if not suc then return LOG('warn',"Failed to create ArrayImage: "..res) end
if not suc then return LOG('warn',"Failed to create ArrayImage: "..tostring(res)) end
WAIT.setDefaultDraw(function(a,t)
GC.setBlendMode('add','alphamultiply')
GC.setColor(1,1,1,a)
Expand Down
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

### Changed

- Every thing
- Everything
2 changes: 1 addition & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ for _,v in next,love.filesystem.getDirectoryItems('assets/shader') do
if FILE.isSafe('assets/shader/'..v) then
local name=v:sub(1,-6)
local suc,res=pcall(love.graphics.newShader,'assets/shader/'..name..'.hlsl')
SHADER[name]=suc and res or error("Error in Shader '"..name.."': "..res)
SHADER[name]=suc and res or error("Err in compiling Shader '"..name.."': "..tostring(res))
end
end
-- Initialize shader parameters
Expand Down

0 comments on commit 1a56305

Please sign in to comment.