Exemple #1
0
        public static int Main(string[] args)
        {
            PruManager.Init();

            Thread.Sleep(100);

            Console.WriteLine("Initialized");

            var listener = new Listener();

            listener.Listen();
            Console.WriteLine("Listening...");

            while (listener.State != Listener.StateEnum.None)
            {
                listener.DoMessageLoop();
            }

            FrameStreamer.Stop();

            return(0);
        }
Exemple #2
0
        public static void Init()
        {
            if (Initialized)
            {
                return;
            }

            if (Syscall.geteuid() != 0)
            {
                throw new Exception("arvid: error ! permission check failed. Superuser required.\n");
            }

            Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.AboveNormal;

            _initUio();
            _initPruss();
            _initMemory();
            SetVideoMode(VideoMode.Mode320, 252);
            _loadPruCode();
            FrameStreamer.Init();

            Initialized = true;
        }