temp fix for enabling language switching

This commit is contained in:
2023-06-13 22:45:59 -04:00
parent 83fa4cab68
commit 974be4ffd0
3 changed files with 18 additions and 5 deletions
@@ -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.