Esempio n. 1
0
        static void Main(string[] args)
        {
            osuManager = new OsuManager();

            if (!osuManager.Initialize())
            {
                Console.WriteLine();
                Console.WriteLine("osu!rx will close in 5 seconds...");
                Thread.Sleep(5000);
                Environment.Exit(0);
            }

            configManager = new ConfigManager();

            DependencyContainer.Cache(osuManager);
            DependencyContainer.Cache(configManager);

            relax = new Relax();

            defaultConsoleTitle = Console.Title;
            if (configManager.UseCustomWindowTitle)
            {
                Console.Title = configManager.CustomWindowTitle;
            }

            DrawMainMenu();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            int win = GetConsoleWindow();

            ShowWindow(win, 0);
            osuManager = new OsuManager();

            if (!osuManager.Initialize())
            {
                Console.Clear();
                Console.WriteLine("osu!rx failed to initialize:\n");
                Console.WriteLine("Memory scanning failed! Try restarting osu!, osu!rx or your computer to fix this issue.");
                Console.WriteLine("It that didn't helped, then report this on GitHub/MPGH.");
                Console.WriteLine("Please include as much info as possible (OS version, hack version, build source, debug info, etc.).");
                Console.WriteLine($"\n\nDebug Info:\n");
                Console.WriteLine(osuManager.DebugInfo);

                while (true)
                {
                    Thread.Sleep(1000);
                }
            }

            configManager = new ConfigManager();

            DependencyContainer.Cache(osuManager);
            DependencyContainer.Cache(configManager);

            relax    = new Relax();
            timewarp = new Timewarp();

            defaultConsoleTitle = Console.Title;
            if (configManager.UseCustomWindowTitle)
            {
                Console.Title = configManager.CustomWindowTitle;
            }


            DrawMainMenu();
        }