Skip to content

Commit

Permalink
Merge branch 'winform_gui' of https://github.com/Sergey004/Quest2-VRC
Browse files Browse the repository at this point in the history
…into winform_gui
  • Loading branch information
Sergey004 committed Oct 26, 2024
2 parents ea7f062 + 1867a2d commit f6c4d06
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Quest2-VRC.Core/Modules/ADB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Quest 1 (Android 10) = monterey
Quest Pro = seacliff
Quest 3 = eureka
Quest3S = panther */
Quest 3 = eureka

Check failure on line 48 in Quest2-VRC.Core/Modules/ADB.cs

View workflow job for this annotation

GitHub Actions / build

; expected

Check failure on line 48 in Quest2-VRC.Core/Modules/ADB.cs

View workflow job for this annotation

GitHub Actions / build

; expected
Quest3S = panther */

Check failure on line 49 in Quest2-VRC.Core/Modules/ADB.cs

View workflow job for this annotation

GitHub Actions / build

Invalid expression term '/'

Check failure on line 49 in Quest2-VRC.Core/Modules/ADB.cs

View workflow job for this annotation

GitHub Actions / build

Invalid expression term '{'

Check failure on line 49 in Quest2-VRC.Core/Modules/ADB.cs

View workflow job for this annotation

GitHub Actions / build

; expected
{
Console.WriteLine("Device is: \nModel: {0}\nCodename: {1} \nState: {2}", device.Model, device.Name, device.State);
Console.WriteLine("Oculus/Meta device is not detected or is not authorized, please disconnect all non Oculus/Meta devices and close all emulators on PC, try again");
Expand Down Expand Up @@ -229,13 +231,21 @@ public static void StartADBSrv()
}


public static void StopADB()

Check failure on line 234 in Quest2-VRC.Core/Modules/ADB.cs

View workflow job for this annotation

GitHub Actions / build

; expected
public static void StopADB()

{
if (!AdbServer.Instance.GetStatus().IsRunning == false)
{
try
{
if (!AdbServer.Instance.GetStatus().IsRunning == false)
{
try

{
ToastNotificationManagerCompat.History.Clear();
ToastNotificationManagerCompat.Uninstall();
{
ToastNotificationManagerCompat.History.Clear();
ToastNotificationManagerCompat.Uninstall();
Expand All @@ -247,6 +257,13 @@ public static void StopADB()
{
// IDK how this works
}
ForceKillADB();
Environment.Exit(1987);
}

Check failure on line 262 in Quest2-VRC.Core/Modules/ADB.cs

View workflow job for this annotation

GitHub Actions / build

} expected
catch
{
// IDK how this works
}

}
else
Expand All @@ -255,8 +272,17 @@ public static void StopADB()
ToastNotificationManagerCompat.Uninstall();
Environment.Exit(1987);
}
}
else

Check failure on line 276 in Quest2-VRC.Core/Modules/ADB.cs

View workflow job for this annotation

GitHub Actions / build

Invalid token 'else' in class, record, struct, or interface member declaration
{
ToastNotificationManagerCompat.History.Clear();

Check failure on line 278 in Quest2-VRC.Core/Modules/ADB.cs

View workflow job for this annotation

GitHub Actions / build

Invalid token '(' in class, record, struct, or interface member declaration
ToastNotificationManagerCompat.Uninstall();
Environment.Exit(1987);
}

}
}



}
Expand Down

0 comments on commit f6c4d06

Please sign in to comment.