Update link for RBB

This commit is contained in:
Pdawg11239 committed 2025-03-30 15:11:28 -04:00
1 parent 0ea82ee67c
commit ed41cf84d4
3 files changed
+7 -7

No files matched your search

@@ -12,7 +12,7 @@ namespace BadBuilder
List<DownloadItem> items = new() List<DownloadItem> items = new()
{ {
("XEXMenu", "https://consolemods.org/wiki/images/3/35/XeXmenu_12.7z"), ("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"), ("Simple 360 NAND Flasher", "https://www.consolemods.org/wiki/images/f/ff/Simple_360_NAND_Flasher.7z"),
}; };
await DownloadHelper.GetGitHubAssets(items); await DownloadHelper.GetGitHubAssets(items);
@@ -100,7 +100,6 @@ namespace BadBuilder
}) })
).Trim().Trim('"'); ).Trim().Trim('"');
Console.WriteLine(existingPath);
try try
{ {
File.Copy(existingPath, destinationPath, overwrite: true); File.Copy(existingPath, destinationPath, overwrite: true);
+5 -4
View File
@@ -40,6 +40,7 @@ namespace BadBuilder.Helpers
{ {
try try
{ {
byte[] downloadBuffer = new byte[8192];
using (HttpResponseMessage response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead)) using (HttpResponseMessage response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead))
{ {
response.EnsureSuccessStatusCode(); response.EnsureSuccessStatusCode();
@@ -52,22 +53,22 @@ namespace BadBuilder.Helpers
using (Stream contentStream = await response.Content.ReadAsStreamAsync()) using (Stream contentStream = await response.Content.ReadAsStreamAsync())
using (FileStream fileStream = new($"{DOWNLOAD_DIR}/{filename}", System.IO.FileMode.Create, FileAccess.Write, FileShare.None, 8192, true)) 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) while (true)
{ {
var read = await contentStream.ReadAsync(buffer, 0, buffer.Length); var read = await contentStream.ReadAsync(downloadBuffer, 0, downloadBuffer.Length);
if (read == 0) if (read == 0)
break; break;
task.Increment(read); task.Increment(read);
await fileStream.WriteAsync(buffer, 0, read); await fileStream.WriteAsync(downloadBuffer, 0, read);
} }
} }
} }
} }
catch (Exception ex) catch (Exception ex)
{ {
AnsiConsole.MarkupLine($"[red]Error downloading:[/] {ex}"); AnsiConsole.MarkupLine($"[red]Error downloading file from [bold]{url}[/]: {ex}[/]");
} }
} }
} }
+1 -1
View File
@@ -173,7 +173,7 @@ namespace BadBuilder
[#CCE388]██████╔╝██║ ██║██████╔╝██████╔╝╚██████╔╝██║███████╗██████╔╝███████╗██║ ██║[/] [#CCE388]██████╔╝██║ ██║██████╔╝██████╔╝╚██████╔╝██║███████╗██████╔╝███████╗██║ ██║[/]
[#CCE388]╚═════╝ ╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═════╝ ╚═╝╚══════╝╚═════╝ ╚══════╝╚═╝ ╚═╝[/] [#CCE388]╚═════╝ ╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═════╝ ╚═╝╚══════╝╚═════╝ ╚══════╝╚═╝ ╚═╝[/]
[#76B900]──────────────────────────────────────────────────────────────────────v0.20a[/] [#76B900]──────────────────────────────────────────────────────────────────────v0.21a[/]
───────────────────────Xbox 360 [#FF7200]BadUpdate[/] USB Builder─────────────────────── ───────────────────────Xbox 360 [#FF7200]BadUpdate[/] USB Builder───────────────────────
[#848589]Created by Pdawg[/] [#848589]Created by Pdawg[/]
[#76B900]────────────────────────────────────────────────────────────────────────────[/] [#76B900]────────────────────────────────────────────────────────────────────────────[/]