Skip to content

Commit

Permalink
加print
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Jan 4, 2025
1 parent 3b7b612 commit 3369c73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ CURSOR=require'assets.cursor'
SHADER={}
for _,v in next,love.filesystem.getDirectoryItems('assets/shader') do
if FILE.isSafe('assets/shader/'..v) then
print('Loading Shader: '..v)
local name=v:sub(1,-6)
local suc,res=pcall(love.graphics.newShader,'assets/shader/'..name..'.hlsl')
SHADER[name]=suc and res or error("Err in compiling Shader '"..name.."': "..tostring(res))
Expand Down

0 comments on commit 3369c73

Please sign in to comment.