添加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

@@ -33,6 +33,10 @@ function LANG.init(defaultLang,langList,publicText,pretreatFunc)
end
function LANG.get(l)
if not langList[l]then
LOG("Wrong language: "..tostring(l))
l=defaultLang
end
return langList[l]
end