Skip to content

Commit

Permalink
小程序场景放到另一个文件夹里
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Jul 12, 2024
1 parent fbdba38 commit 0f59492
Show file tree
Hide file tree
Showing 19 changed files with 6 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,12 @@ for _,v in next,love.filesystem.getDirectoryItems('assets/scene') do
SCN.add(sceneName,require('assets/scene/'..sceneName))
end
end
for _,v in next,love.filesystem.getDirectoryItems('assets/scene_app') do
if FILE.isSafe('assets/scene_app/'..v) then
local sceneName=v:sub(1,-5)
SCN.add(sceneName,require('assets/scene_app/'..sceneName))
end
end

for _,v in next,{
'brik_template', -- Shouldn't be used
Expand Down

0 comments on commit 0f59492

Please sign in to comment.