Ejemplo n.º 1
0
        private static void SetupAndRunApplication(Opt opt)
        {
            Program.CheckIfAlreadyRunning(Opt.Instance.h);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (!VMWindow.CheckAndroidFilesIntegrity())
            {
                Logger.Error("Android File Integrity check failed");
                Environment.Exit(-2);
            }
            TimelineStatsSender.HandleEngineBootEvent(EngineStatsEvent.android_file_integrity_passed.ToString());
            InputMapper.RegisterGuestBootLogsHandler();
            AndroidService.StartAsync();
            HTTPHandler.StartServer();
            Program.InitAudioLogger(Logger.GetHdLoggerCallback());
            VMWindow vmWindow = new VMWindow(opt.h, opt.w);

            Application.Run();
        }