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

Commit 52fe66f

Browse files
Add files via upload
1 parent bf39e18 commit 52fe66f

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

C#/MainWindow.xaml.cs

Lines changed: 16 additions & 7 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 = 1;
34+
int PatchV = 2;
3535
Boolean Preview = false;
3636

3737
String IP = "";
@@ -43,8 +43,6 @@ public partial class MainWindow : Window
4343
String Mods = "";
4444
String Scores = "";
4545
String BackupF = "";
46-
47-
4846

4947
public MainWindow()
5048
{
@@ -83,7 +81,8 @@ public MainWindow()
8381

8482
public void Backup(object sender, RoutedEventArgs e)
8583
{
86-
if(running)
84+
StartBMBF();
85+
if (running)
8786
{
8887
running = false;
8988
return;
@@ -145,18 +144,20 @@ public void Backup(object sender, RoutedEventArgs e)
145144

146145
ModsB();
147146

148-
txtbox.AppendText("\n\n\nBMBF and Beat Saber Backup has been made.");
149-
txtbox.ScrollToEnd();
150-
running = false;
151147

152148
//Mod cfgs
153149
txtbox.AppendText("\n\nBacking up Mod Configs");
154150
adb("pull /sdcard/Android/data/com.beatgames.beatsaber/files/mod_cfgs \"" + BackupF + "\"");
155151
txtbox.AppendText("\nBacked up Mod Configs\n");
152+
153+
txtbox.AppendText("\n\n\nBMBF and Beat Saber Backup has been made.");
154+
txtbox.ScrollToEnd();
155+
running = false;
156156
}
157157

158158
public void Restore(object sender, RoutedEventArgs e)
159159
{
160+
StartBMBF();
160161
if (running)
161162
{
162163
return;
@@ -258,6 +259,14 @@ public void Restore(object sender, RoutedEventArgs e)
258259
running = false;
259260
}
260261

262+
public void StartBMBF()
263+
{
264+
Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new Action(delegate
265+
{
266+
adb("shell am start -n com.weloveoculus.BMBF/com.weloveoculus.BMBF.MainActivity");
267+
}));
268+
}
269+
261270
public int CheckVer()
262271
{
263272
String[] directories = Directory.GetFiles(Songs);
512 Bytes
Binary file not shown.
2 KB
Binary file not shown.

0 commit comments

Comments
 (0)