暂时注释掉bgm和voice模块缺失文件时弹出消息的代码 close #288
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user