Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

Commit 47097d7

Browse files
Add files via upload
1 parent 8f28f22 commit 47097d7

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

C#/MainWindow.xaml.cs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public partial class MainWindow : Window
3131

3232
int MajorV = 1;
3333
int MinorV = 1;
34-
int PatchV = 4;
34+
int PatchV = 5;
3535
Boolean Preview = false;
3636

3737
String IP = "";
@@ -48,7 +48,6 @@ public MainWindow()
4848
{
4949
InitializeComponent();
5050
UpdateB.Visibility = Visibility.Hidden;
51-
exe = exe.Replace("\\BMBF BS Backup Utility.exe", "");
5251

5352
BackupF = exe + "\\Backups";
5453

@@ -541,7 +540,17 @@ public void Upload(String Path)
541540

542541
txtbox.AppendText("\n\nUploading " + directories[i] + " to BMBF");
543542
Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new Action(delegate {
544-
client.UploadFile("http://" + IP + ":50000/host/beatsaber/upload?overwrite", directories[i]);
543+
try
544+
{
545+
client.UploadFile("http://" + IP + ":50000/host/beatsaber/upload?overwrite", directories[i]);
546+
return;
547+
}
548+
catch
549+
{
550+
txtbox.AppendText("\n\n\nAn error occured (Code: BMBF100). Couldn't access BMBF. Check following:");
551+
txtbox.AppendText("\n\n- You put in the Quests IP right.");
552+
txtbox.AppendText("\n\n- Your Quest is on and BMBF is opened.");
553+
}
545554
}));
546555

547556
if (i%20 == 0 && i != 0)
@@ -720,7 +729,7 @@ public void PlaylistB()
720729
{
721730
txtbox.AppendText("\n\n\nAn error occured (Code: BMBF100). Couldn't access BMBF. Check following:");
722731
txtbox.AppendText("\n\n- You put in the Quests IP right.");
723-
txtbox.AppendText("\n\n- Your Quest is on.");
732+
txtbox.AppendText("\n\n- Your Quest is on and BMBF opened.");
724733

725734
}
726735
getBackups();
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)