Skip to content

Commit

Permalink
Update CN/KR/TW to 3.05
Browse files Browse the repository at this point in the history
  • Loading branch information
randomqwerty committed May 24, 2024
1 parent 544b3b9 commit 9a411c1
Show file tree
Hide file tree
Showing 242 changed files with 3,918 additions and 7 deletions.
13 changes: 9 additions & 4 deletions Downloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,14 @@ public Downloader(string _location = "kr") {
minversion = Math.Round(double.Parse(clientVersion) / 100) * 10;
abVersion = obj["ab_version"].ToString();

if (clientVersion == "29999") {
minversion = 3010;
}
if (clientVersion == "29999")
{
minversion = 3010;
}
else if (clientVersion == "30400" && new[] { "kr", "ch", "tw" }.Contains(_location))
{
minversion = 3050;
}

Console.WriteLine("Retrived data version: " + dataVersion);

Expand Down Expand Up @@ -95,7 +100,7 @@ public void downloadAsset(string server) {
byte[] biv = Convert.FromBase64String(iv);
string encryptedVersion = "";

if (server == "en")
if (new[] { "en", "ch", "kr", "tw" }.Contains(server))
{
encryptedVersion = Crypto.GetDesEncryted($"{minversion}_{abVersion}_AndroidResConfigData2018", bkey, biv.Take(8).ToArray());
}
Expand Down
Loading

0 comments on commit 9a411c1

Please sign in to comment.