Ejemplo n.º 1
0
        private void PCSX2Check_Tick()
        {
            if (System.Environment.OSVersion.Platform == PlatformID.Unix ||
                System.Environment.OSVersion.Platform == PlatformID.MacOSX)
            {
                if (LinuxMemoryManagement.getuid() != 0)
                {
                    MessageBox.Show("Not running as root");
                    this.Close();
                }
            }


            Process[] pcsx2 = Process.GetProcessesByName(PCSX2PROCESSNAME);

            if (pcsx2.Length > 0)
            {
                pcsx2Running = true;
            }
            else
            {
                MessageBox.Show("PCSX2 not detected. Closing.");
                this.Close();
            }
        }
Ejemplo n.º 2
0
 private void PCSX2Check()
 {
     if (System.Environment.OSVersion.Platform == PlatformID.Unix ||
         System.Environment.OSVersion.Platform == PlatformID.MacOSX)
     {
         if (LinuxMemoryManagement.getuid() != 0)
         {
             //throw new Exception("Not running as root");
         }
     }
     Process[] pcsx2 = Process.GetProcessesByName(PCSX2PROCESSNAME);
     if (pcsx2.Length > 0)
     {
         pcsx2Running = true;
     }
     else
     {
         pcsx2Running = false;
     }
 }