From 2ec91f58aec1db3d15f144f4557b6a0b7727ccf3 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 10 Sep 2021 17:38:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E6=B3=A8=E9=87=8A=E6=8E=89bg?= =?UTF-8?q?m=E5=92=8Cvoice=E6=A8=A1=E5=9D=97=E7=BC=BA=E5=A4=B1=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=B6=E5=BC=B9=E5=87=BA=E6=B6=88=E6=81=AF=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=20close=20#288?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/bgm.lua | 8 ++++---- Zframework/voice.lua | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Zframework/bgm.lua b/Zframework/bgm.lua index 6c21fb3e..1cdcd456 100644 --- a/Zframework/bgm.lua +++ b/Zframework/bgm.lua @@ -36,13 +36,13 @@ function BGM.init(list) Sources[name]:setLooping(true) Sources[name]:setVolume(0) return true - else - MES.new('warn',"No BGM file: "..Sources[name],5) + -- else + -- MES.new('warn',"No BGM file: "..Sources[name],5) end elseif Sources[name]then return true - elseif name then - MES.new('warn',"No BGM: "..name,5) + -- elseif name then + -- MES.new('warn',"No BGM: "..name,5) end end function BGM.loadAll()for name in next,Sources do _load(name)end end diff --git a/Zframework/voice.lua b/Zframework/voice.lua index cc288ce2..83f66ab5 100644 --- a/Zframework/voice.lua +++ b/Zframework/voice.lua @@ -45,9 +45,8 @@ function VOC.init(list) repeat n=n+1 until not _loadVoiceFile(list[i],list[i]..'_'..n) if n==1 then - if not _loadVoiceFile(list[i],list[i])then - MES.new('warn',"No VOICE file: "..list[i],.1) - end + _loadVoiceFile(list[i],list[i]) + -- if not _loadVoiceFile(list[i],list[i])then MES.new('warn',"No VOICE file: "..list[i],.1)end end if not Source[list[i]][1]then Source[list[i]]=nil