diff --git a/Assets/Scripts/Assembly-CSharp/Qoo/Ks/KsData.cs b/Assets/Scripts/Assembly-CSharp/Qoo/Ks/KsData.cs index ccce6aaee..e51dd4741 100644 --- a/Assets/Scripts/Assembly-CSharp/Qoo/Ks/KsData.cs +++ b/Assets/Scripts/Assembly-CSharp/Qoo/Ks/KsData.cs @@ -36,7 +36,7 @@ namespace Qoo.Ks int no = Akb.SearchFile(id.Name); AKB_FILEINFO info = Akb.GetFileInfo(no); string name = info.Name; - if (!this.m_DataList.ContainsKey(name)) + if (!this.m_DataList.ContainsKey(name)) { string path = Akb.GetDirInfo((int)info.nDirNo).Name; UnityFile file = Singleton.Instance.LoadKsFile(path + "/" + name + ".txt"); @@ -47,6 +47,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.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; } diff --git a/Assets/StreamingAssets/EN/bytes/screen/title/restore.png b/Assets/StreamingAssets/EN/bytes/screen/title/restore.png index c36814373..614cc9eec 100644 --- a/Assets/StreamingAssets/EN/bytes/screen/title/restore.png +++ b/Assets/StreamingAssets/EN/bytes/screen/title/restore.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9740df181a8f21a0d49393e8aaa3be1d5623773873942b6e634fa51678a74cec -size 6811 +oid sha256:56c571b87659cea74865b5343170f23ed716eda6d54d96e93c452df762a5d21d +size 16222 diff --git a/Assets/StreamingAssets/JP/bytes/screen/title/buy02.png b/Assets/StreamingAssets/JP/bytes/screen/title/buy02.png index f6b1f92f9..3427ff4ff 100644 --- a/Assets/StreamingAssets/JP/bytes/screen/title/buy02.png +++ b/Assets/StreamingAssets/JP/bytes/screen/title/buy02.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1d3dcf33ef417f4ad61be2f4f3c8a5fb9ba632da59e8adb439c84bc0431495fd -size 10055 +oid sha256:ec9f4680467c6e0bb59a706c7daafdc994cc5c8d0edd798547ad5cdef71da82c +size 14284