Skip to content

Commit

Permalink
Update JP to v3.04
Browse files Browse the repository at this point in the history
  • Loading branch information
randomqwerty committed May 31, 2024
1 parent 9a411c1 commit 42b303b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions Downloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,7 @@ public void downloadAsset(string server) {
byte[] biv = Convert.FromBase64String(iv);
string encryptedVersion = "";

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

string filename = Regex.Replace(encryptedVersion, @"[^a-zA-Z0-9]", "") + ".txt";

Expand Down
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ static void Main(string[] args)
Downloader jp = new Downloader("jp");
jp.downloadStc();
jp.downloadAsset("jp");
clientVersion = "3020";
clientVersion = "3040";
break;
case "ch":
Console.WriteLine("\n====CN Data download====");
Expand Down

0 comments on commit 42b303b

Please sign in to comment.