修复语言文件系统之前的fallback的问题(fullCopy标签错误使用)

This commit is contained in:
MrZ626
2020-11-02 14:48:54 +08:00
parent b4a103f5f1
commit cea6e2343c
7 changed files with 12 additions and 12 deletions

View File

@@ -43,9 +43,9 @@ local publicWidgetText={
}
local function langFallback(T0,T)
for k,v in next,T0 do
if type(v)=="table"and not v.fullCopy then--fullCopy=true : copy pointer instead of content
if type(v)=="table"and not v.refuseCopy then--refuseCopy: just copy pointer, not contents
if not T[k]then T[k]={}end
if type(T[k])=="table"and not v[1]then langFallback(v,T[k])end
if type(T[k])=="table"then langFallback(v,T[k])end
elseif not T[k]then
T[k]=v
end