From 03515b44908237276f39763ee9e6e7816842464c Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Sun, 11 Sep 2022 22:49:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=86=E6=9E=B6=E8=B7=9F=E8=BF=9B=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbgm=E9=9F=B3=E9=87=8F=E4=B8=BA0=E6=97=B6?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=87=A0=E6=AC=A1bgm=E4=BC=9A=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework | 2 +- main.lua | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Zframework b/Zframework index 963af77f..38c6348b 160000 --- a/Zframework +++ b/Zframework @@ -1 +1 @@ -Subproject commit 963af77fe2e221e2fa007fdef5819514d058bb1d +Subproject commit 38c6348b4543078fe5973b072bb5b944f6e1bfac diff --git a/main.lua b/main.lua index a64883be..052dcd57 100644 --- a/main.lua +++ b/main.lua @@ -59,7 +59,6 @@ FONT.setFallback('norm') SCR.setSize(1280,720)--Initialize Screen size BGM.setMaxSources(5) -BGM.setChange(function(name)MES.new('music',text.nowPlaying..name,5)end) VOC.setDiversion(.62) WIDGET.setOnChange(function() @@ -354,7 +353,7 @@ SFX.init((function()--[Warning] Not loading files here, just get the list of sou end return L end)()) -BGM.load((function() +BGM.init((function() local L={} for _,v in next,fs.getDirectoryItems('media/music')do if isSafeFile('media/music/'..v,"Dangerous file : %SAVE%/media/music/"..v)then