Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Commit

Permalink
V2.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemysław Adamczyk committed Nov 17, 2018
1 parent 9f3780d commit 03ced6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions YgoProPatcher/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ private async Task<List<string>> DownloadCDBSFromGithub(string destinationFolder

List<string> listOfCDBs = GitAccess.GetAllFilesWithExtensionFromYGOPRO("/", ".cdb");
string cdbFolder = Path.Combine(destinationFolder, "cdb");
if(!await FileDownload("cards.cdb", cdbFolder, "https://github.com/szefo09/cdb/raw/master/", true))
if(!await FileDownload("cards.cdb", cdbFolder, "https://github.com/purerosefallen/ygopro-database/raw/master/locales/en-US/", true))
{
await FileDownload("cards.cdb", cdbFolder, "https://github.com/shadowfox87/ygopro2/raw/master/cdb/", true);
}
Expand All @@ -353,8 +353,10 @@ private async Task<List<string>> DownloadCDBSFromGithub(string destinationFolder
listOfDownloadedCDBS.Add(Path.Combine(cdbFolder, "prerelease-nfw.cdb"));
}
List<Task> downloadList = new List<Task>();
listOfCDBs.RemoveAll(item => item.Contains("fit"));//Remove unnecessary fit* cdb
foreach (string cdb in listOfCDBs)
{

FileDownload(cdb, cdbFolder, "https://github.com/Ygoproco/Live2017Links/raw/master/", true);
listOfDownloadedCDBS.Add(Path.Combine(cdbFolder, cdb));
progressBar.Invoke(new Action(() => progressBar.Increment(1)));
Expand Down Expand Up @@ -455,9 +457,12 @@ private async Task GitHubDownload(string destinationFolder)
List<string> CDBS = new List<string>();

CDBS = await DownloadCDBSFromGithub(destinationFolder);
await FileDownload("lflist.conf", Path.Combine(YgoPro2Path.Text, "config"), "https://raw.githubusercontent.com/Ygoproco/Live2017Links/master/", true);
await FileDownload("strings.conf", Path.Combine(YgoPro2Path.Text, "config"), Data.GetStringsWebsite(), true);
progressBar.Invoke(new Action(() => { progressBar.Value = progressBar.Maximum; }));

DownloadUsingCDB(CDBS, destinationFolder);
await FileDownload("lflist.conf", Path.Combine(YgoPro2Path.Text, "config"), "https://raw.githubusercontent.com/Ygoproco/Live2017Links/master/", true);

}

private void GitHubDownloadCheckbox_CheckedChanged(object sender, EventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion YgoProPatcher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("2.6.37.0")]
[assembly: AssemblyFileVersion("2.6.86.0")]

0 comments on commit 03ced6d

Please sign in to comment.