Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            // Init log
            log = string.Empty;
            for (int i = 0; i < LOG_SIZE; i++)
            {
                log += "\n";
            }

            AppMain.LogLine("Vita Defiler Client started");

            CommandListener.InitializeNetwork();
            typeof(NativeFunctions).GetMethods();           // take care of lazy init

            Console.WriteLine("XXVCMDXX:DONE");             // signal PC

            gui_enabled = false;

            while (true)
            {
                if (enable_gui)
                {
                    enable_gui = false;
                    InitializeGraphics();
                }
                if (gui_enabled)
                {
                    Update();
                    Render();
                }
            }
        }
Ejemplo n.º 2
0
        public static void Start()
        {
            LogLine("Vita Defiler Client started");

            CommandListener.InitializeNetwork();
            typeof(NativeFunctions).GetMethods();           // take care of lazy init

            Console.WriteLine("XXVCMDXX:DONE");             // signal PC
        }