temp fix for enabling language switching
Explore-Gitea-Actions Details

pull/5/head
Arneth 3 years ago
parent 83fa4cab68
commit 974be4ffd0

@ -46,6 +46,19 @@ namespace Qoo.Ks
}
string script = Encoding.Unicode.GetString(file.Data);
this.m_DataList.Add(name, script);
}
else
{
//Force files to be realoaded every time to enable language switching
//TODO: Find a way to only reload the cache when language has actually been switched
string path = Akb.GetDirInfo((int)info.nDirNo).Name;
UnityFile file = Singleton<UnityFileLoader>.Instance.LoadKsFile(path + "/" + name + ".txt");
while (!file.IsReadEnd)
{
yield return 0;
}
string script = Encoding.Unicode.GetString(file.Data);
this.m_DataList[name] = script;
}
yield break;
}

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save