private void StartPayloadInjection() { // Setup cheatbase var cheatBase = new CheatBase("osu!") { InternalMode = true, InternalPayloadPath = Payload.Main.AssemblyPath }; // Run try { cheatBase.Run(); } catch (InjectPayloadFailedException ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error); } Dispatcher.Invoke(Close); }
private void StartPayloadInjection() { StatusLabel.Text = Resources.StatusText_Injecting; // Setup cheatbase var cheatBase = new CheatBase("csgo") { InternalMode = true, InternalPayloadPath = Payload.Main.AssemblyPath }; // Run try { cheatBase.Run(); } catch (InjectPayloadFailedException ex) { Console.WriteLine(ex); throw; } Close(); }