예제 #1
0
        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);
        }
예제 #2
0
        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();
        }