添加log模块,用于代替之前缺少音频文件弹出的消息框

也给缺少图片和加载错误语言等地方添加了日志
控制台添加log命令输出日志
This commit is contained in:
MrZ626
2021-09-22 09:30:18 +08:00
parent 48c9bd6dfd
commit 56cbe4c5b6
8 changed files with 52 additions and 9 deletions

View File

@@ -45,8 +45,9 @@ function VOC.init(list)
repeat n=n+1 until not _loadVoiceFile(path,list[i],list[i]..'_'..n)
if n==1 then
_loadVoiceFile(path,list[i],list[i])
-- if not _loadVoiceFile(path,list[i],list[i])then MES.new('warn',"[]no VOC] "..list[i],.1)end
if not _loadVoiceFile(path,list[i],list[i])then
LOG("No VOC: "..list[i],.1)
end
end
if not Source[list[i]][1]then
Source[list[i]]=nil