Пример #1
0
        private unsafe void Form1_Load(object sender, EventArgs e)
        {
            while (!Init())
            {
                var result =
                    MessageBox.Show(
                        "The game is not open.\nAlso make sure that you open the application as administrator.",
                        "Can't attach to process", MessageBoxButtons.RetryCancel, MessageBoxIcon.Information);
                switch (result)
                {
                case DialogResult.Retry:
                    break;

                case DialogResult.Cancel:
                    Environment.Exit(0);
                    break;

                default:
                    Environment.Exit(0);
                    break;
                }

                Thread.Sleep(100);
            }

            CalcedOffsets.Init();
            Signatures.Init();
            Netvars.Init();

            Properties.Settings.Default.namestealer = false;
            Properties.Settings.Default.Save();
            Start();
        }