Update link for RBB

This commit is contained in:
Pdawg11239
2025-03-30 15:11:28 -04:00
parent e27b272aa6
commit 39316e3078
3 changed files with 7 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ namespace BadBuilder
List<DownloadItem> items = new()
{
("XEXMenu", "https://consolemods.org/wiki/images/3/35/XeXmenu_12.7z"),
("Rock Band Blitz", "https://download.digiex.net/Consoles/Xbox360/Arcade-games/RBBlitz.zip"),
("Rock Band Blitz", "https://github.com/Pdawg-bytes/BadBuilder/releases/download/v0.10a/GameData.zip"),
("Simple 360 NAND Flasher", "https://www.consolemods.org/wiki/images/f/ff/Simple_360_NAND_Flasher.7z"),
};
await DownloadHelper.GetGitHubAssets(items);
@@ -100,7 +100,6 @@ namespace BadBuilder
})
).Trim().Trim('"');
Console.WriteLine(existingPath);
try
{
File.Copy(existingPath, destinationPath, overwrite: true);

View File

@@ -40,6 +40,7 @@ namespace BadBuilder.Helpers
{
try
{
byte[] downloadBuffer = new byte[8192];
using (HttpResponseMessage response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead))
{
response.EnsureSuccessStatusCode();
@@ -52,22 +53,22 @@ namespace BadBuilder.Helpers
using (Stream contentStream = await response.Content.ReadAsStreamAsync())
using (FileStream fileStream = new($"{DOWNLOAD_DIR}/{filename}", System.IO.FileMode.Create, FileAccess.Write, FileShare.None, 8192, true))
{
byte[] buffer = new byte[8192];
Array.Clear(downloadBuffer);
while (true)
{
var read = await contentStream.ReadAsync(buffer, 0, buffer.Length);
var read = await contentStream.ReadAsync(downloadBuffer, 0, downloadBuffer.Length);
if (read == 0)
break;
task.Increment(read);
await fileStream.WriteAsync(buffer, 0, read);
await fileStream.WriteAsync(downloadBuffer, 0, read);
}
}
}
}
catch (Exception ex)
{
AnsiConsole.MarkupLine($"[red]Error downloading:[/] {ex}");
AnsiConsole.MarkupLine($"[red]Error downloading file from [bold]{url}[/]: {ex}[/]");
}
}
}

View File

@@ -173,7 +173,7 @@ namespace BadBuilder
[#CCE388] [/]
[#CCE388] [/]
[#76B900]v0.20a[/]
[#76B900]v0.21a[/]
Xbox 360 [#FF7200]BadUpdate[/] USB Builder
[#848589]Created by Pdawg[/]
[#76B900][/]