Esempio n. 1
0
        static void Main(string[] args)
        {
            //Dont.Be.A.Scumbag.And.Remove.This.Warn.warn();
            Console.WriteLine("Xri Client");
            Console.WriteLine("Flare port to C#");
            Console.WriteLine("Xri port to C#");
            Console.WriteLine("Discord: https://discord.gg/t8pp4Vm");

            Process.Start("minecraft://");

            try
            {
                MCM.openGame();
                MCM.openWindowHost();

                CommandHook     cmh   = new CommandHook();
                SDK             sdk   = new SDK();
                FileMan         fm    = new FileMan();
                CategoryHandler ch    = new CategoryHandler();
                TabUiHandler    tuih  = new TabUiHandler();
                ModuleHandler   mh    = new ModuleHandler();
                KeybindHandler  kh    = new KeybindHandler();
                Thread          uiApp = new Thread(() => { OverlayHost ui = new OverlayHost(); Application.Run(ui); });
                if (fm.readConfig())
                {
                    Console.WriteLine("Loaded configurations!");
                }
                else
                {
                    Console.WriteLine("Could not load configurations!");
                }
                uiApp.Start();
                while (true)
                {
                    try
                    {
                        mainLoop.Invoke(null, new EventArgs());
                        Thread.Sleep(threadSleep);
                    }
                    catch (Exception)
                    {
                    }
                }
            } catch (Exception ex)
            {
                Console.WriteLine("Message: " + ex.Message);
                Console.WriteLine("Stacktrace: " + ex.StackTrace);
                MessageBox.Show("Xri crashed! Check the console for error details. Click 'Ok' to quit.");
            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Flare# Client");
            Console.WriteLine("Flare port to C#");
            Console.WriteLine("Discord: https://discord.gg/Hz3Dxg8");

            try
            {
                MCM.openGame();
                MCM.openWindowHost();

                SDK             sdk = new SDK();
                CategoryHandler ch  = new CategoryHandler();
                ModuleHandler   mh  = new ModuleHandler();
                TabUI           ui  = new TabUI();
                KeybindHandler  kh  = new KeybindHandler();
                Application.Run(ui);
            } catch (Exception ex)
            {
                Console.WriteLine("Message: " + ex.Message);
                Console.WriteLine("Stacktrace: " + ex.StackTrace);
                MessageBox.Show("Flare crashed! Check the console for error details. Click 'Ok' to quit.");
            }
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            //Dont.Be.A.Scumbag.And.Remove.This.Warn.warn();
            Console.WriteLine("Flare# Client");
            Console.WriteLine("Flare port to C#");
            Console.WriteLine("Discord: https://discord.gg/Hz3Dxg8");

            Process.Start("minecraft://");

            try
            {
                MCM.openGame();
                MCM.openWindowHost();

                CommandHook     cmh   = new CommandHook();
                FileMan         fm    = new FileMan();
                CategoryHandler ch    = new CategoryHandler();
                ModuleHandler   mh    = new ModuleHandler();
                KeybindHandler  kh    = new KeybindHandler();
                Thread          uiApp = new Thread(() => { OverlayHost ui = new OverlayHost(); Application.Run(ui); });
                if (fm.readConfig())
                {
                    Console.WriteLine("Loaded config!");
                }
                else
                {
                    Console.WriteLine("Could not load config!");
                }
                uiApp.Start();
                if (args != null)
                {
                    if (args.Length > 0)
                    {
                        if (args[0] == "dualThread")
                        {
                            Thread moduleThread = new Thread(() => { while (true)
                                                                     {
                                                                         try { ModuleHandler.registry.tickModuleThread(); Thread.Sleep(1); } catch (Exception) { }
                                                                     }
                                                             });
                            moduleThread.Start();
                        }
                    }
                }
                while (true)
                {
                    try
                    {
                        mainLoop.Invoke(null, new EventArgs());
                        if (limitCpu)
                        {
                            Thread.Sleep(1);
                        }
                    }
                    catch (Exception)
                    {
                    }
                }
            } catch (Exception ex)
            {
                Console.WriteLine("Message: " + ex.Message);
                Console.WriteLine("Stacktrace: " + ex.StackTrace);
                MessageBox.Show("Flare crashed! Check the console for error details. Click 'Ok' to quit.");
            }
        }