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

Commit 94b09e7

Browse files
Add files via upload
1 parent bdde0e2 commit 94b09e7

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

C#/MainWindow.xaml.cs

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public partial class MainWindow : Window
2727
{
2828
int MajorV = 1;
2929
int MinorV = 1;
30-
int PatchV = 1;
30+
int PatchV = 2;
3131
Boolean Preview = false;
3232

3333
Boolean draggable = true;
@@ -141,7 +141,7 @@ private void delete()
141141
catch
142142
{
143143
// Log error.
144-
txtbox.AppendText("\n\n\nAn Error Occured. Check following");
144+
txtbox.AppendText("\n\n\nAn Error Occured (Code: ADB100). Check following");
145145
txtbox.AppendText("\n\n- Your Quest is connected and USB Debugging enabled.");
146146
txtbox.AppendText("\n\n- You have adb installed.");
147147
}
@@ -186,7 +186,7 @@ private void delete()
186186
catch
187187
{
188188
// Log error.
189-
txtbox.AppendText("\n\n\nAn Error Occured. Check following");
189+
txtbox.AppendText("\n\n\nAn Error Occured (Code: ADB100). Check following");
190190
txtbox.AppendText("\n\n- Your Quest is connected and USB Debugging enabled.");
191191
txtbox.AppendText("\n\n- You have adb installed.");
192192
}
@@ -203,7 +203,16 @@ public void Update()
203203
//Download Update.txt
204204
using (WebClient client = new WebClient())
205205
{
206-
client.DownloadFile("https://raw.githubusercontent.com/ComputerElite/Qosmetics-QSaber-Replacer/master/Update.txt", exe + "\\tmp\\Update.txt");
206+
try
207+
{
208+
client.DownloadFile("https://raw.githubusercontent.com/ComputerElite/Qosmetics-QSaber-Replacer/master/Update.txt", exe + "\\tmp\\Update.txt");
209+
210+
}
211+
catch
212+
{
213+
txtbox.AppendText("\n\n\nAn error Occured (Code: UD100). Couldn't check for Updates. Check following");
214+
txtbox.AppendText("\n\n- Your PC has internet.");
215+
}
207216
}
208217
StreamReader VReader = new StreamReader(exe + "\\tmp\\Update.txt");
209218

@@ -293,7 +302,7 @@ private void Start_Update(object sender, RoutedEventArgs e)
293302
catch
294303
{
295304
// Log error.
296-
txtbox.AppendText("\nAn Error Occured");
305+
txtbox.AppendText("\nAn Error Occured (Code: UD200)");
297306
}
298307
}
299308
}
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)