Skip to content

Commit

Permalink
Fix download error
Browse files Browse the repository at this point in the history
  • Loading branch information
HimDek committed Nov 11, 2022
1 parent 7bb6c39 commit be7cbe1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Form_yuzuEarlyAccessLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -562,11 +562,11 @@ private void BackgroundWorker_Check_DoWork(object sender, DoWorkEventArgs e)

for (int i = 0; true; i++)
{
if (int.TryParse(JsonDocument.Parse(yuzu).RootElement[i].GetProperty("tag_name").ToString().Split('-').Last(), out int tag))
latest = JsonDocument.Parse(yuzu).RootElement[0].GetProperty("tag_name").ToString().Split('-').Last();
if (JsonDocument.Parse(JsonDocument.Parse(yuzu).RootElement[0].GetProperty("assets").ToString()).RootElement[i].GetProperty("name").ToString().Split('-').First() == "Windows")
{
latest = JsonDocument.Parse("[ " + JsonDocument.Parse(yuzu).RootElement[i].ToString() + " ]").RootElement[0].GetProperty("tag_name").ToString().Split('-').Last();
url = JsonDocument.Parse(JsonDocument.Parse("[ " + JsonDocument.Parse(yuzu).RootElement[i].ToString() + " ]").RootElement[0].GetProperty("assets").ToString()).RootElement[0].GetProperty("browser_download_url").ToString();
ysize = JsonDocument.Parse(JsonDocument.Parse("[ " + JsonDocument.Parse(yuzu).RootElement[i].ToString() + " ]").RootElement[0].GetProperty("assets").ToString()).RootElement[0].GetProperty("size").ToString();
url = JsonDocument.Parse(JsonDocument.Parse(yuzu).RootElement[0].GetProperty("assets").ToString()).RootElement[i].GetProperty("browser_download_url").ToString();
ysize = JsonDocument.Parse(JsonDocument.Parse(yuzu).RootElement[0].GetProperty("assets").ToString()).RootElement[i].GetProperty("size").ToString();
break;
}
}
Expand Down

0 comments on commit be7cbe1

Please sign in to comment.