Skip to content

Commit

Permalink
🔌 Bump version, add alert before elevating
Browse files Browse the repository at this point in the history
  • Loading branch information
molenzwiebel committed Jun 29, 2019
1 parent a1c5dd2 commit 12366d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions conduit/Administrator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Diagnostics;
using System.Reflection;
using System.Security.Principal;
using System.Windows.Forms;

namespace Conduit
{
Expand All @@ -18,6 +19,14 @@ public static bool IsAdmin()

public static void Elevate()
{
MessageBox.Show(
"Your League client is running as administrator, and Mimic cannot access it. Mimic will now attempt to restart as administrator. Press 'Yes' on the Windows prompt to allow this.",
"Mimic",
MessageBoxButtons.OK,
MessageBoxIcon.Error,
MessageBoxDefaultButton.Button1
);

var currentProcessInfo = new ProcessStartInfo
{
UseShellExecute = true,
Expand Down
2 changes: 1 addition & 1 deletion conduit/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Conduit
class Program
{
public static string APP_NAME = "Mimic Conduit";
public static string VERSION = "2.0.0";
public static string VERSION = "2.1.0";

public static string HUB_WS = "wss://rift.mimic.lol/conduit";
public static string HUB = "https://rift.mimic.lol";
Expand Down

0 comments on commit 12366d8

Please sign in to comment.