Skip to content

Commit

Permalink
Fixed not being able to patch the logitech wrapper properly
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-wh committed Jul 30, 2017
1 parent c68bdaf commit d715821
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 22 deletions.
Binary file modified Project-Aurora/Aurora-LogiLEDWrapper/Aurora-LogiLEDWrapper.rc
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ private void SetSettings()

private void patch_button_Click(object sender, RoutedEventArgs e)
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = @"Aurora.exe";
startInfo.Arguments = @"-install_logitech";
startInfo.Verb = "runas";
Process.Start(startInfo);
Program.InstallLogitech();
}

private void game_enabled_Checked(object sender, RoutedEventArgs e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,7 @@ private void patch_button_Click(object sender, RoutedEventArgs e)
{
try
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = @"Aurora.exe";
startInfo.Arguments = @"-install_logitech";
startInfo.Verb = "runas";
Process.Start(startInfo);
Program.InstallLogitech();
}
catch (Exception exc)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ private void SetSettings()

private void patch_button_Click(object sender, RoutedEventArgs e)
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = @"Aurora.exe";
startInfo.Arguments = @"-install_logitech";
startInfo.Verb = "runas";
Process.Start(startInfo);
Program.InstallLogitech();
}

private void UserControl_Loaded(object sender, RoutedEventArgs e)
Expand Down
4 changes: 2 additions & 2 deletions Project-Aurora/Project-Aurora/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ private static void CurrentDomain_UnhandledException(object sender, UnhandledExc
Exit();
}

private static void InstallLogitech()
public static void InstallLogitech()
{
//Check for Admin
bool isElevated;
Expand Down Expand Up @@ -457,7 +457,7 @@ private static void InstallLogitech()
Global.logger.LogLine("Logitech LED SDK patched successfully", Logging_Level.Info);
System.Windows.MessageBox.Show("Logitech LED SDK patched successfully");

Environment.Exit(0);
//Environment.Exit(0);
}

static void OnProcessExit(object sender, EventArgs e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -841,11 +841,7 @@ private void wrapper_install_logitech_Click(object sender, RoutedEventArgs e)
{
try
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = @"Aurora.exe";
startInfo.Arguments = @"-install_logitech";
startInfo.Verb = "runas";
Process.Start(startInfo);
Program.InstallLogitech();
}
catch (Exception exc)
{
Expand Down

0 comments on commit d715821

Please sign in to comment.