コード例 #1
0
ファイル: POST.cs プロジェクト: MrLucas265/LakeNet
    // Use this for initialization
    void Start()
    {
        bios     = GameObject.Find("BIOS");
        hardware = GameObject.Find("Hardware");

        windowRect = new Rect(0, 0, Customize.cust.RezX, Customize.cust.RezY);
        //pui = GetComponent<ProfileUI>();
        //accset = GetComponent<AccSetup>();
        //lbg = GetComponent<LoginBackground>();
        biosselect = bios.GetComponent <BIOSSelect>();
        boot       = GetComponent <Boot>();
        OScheck    = GetComponent <OSCheck>();
        ram        = hardware.GetComponent <RAM>();
        harddrives = hardware.GetComponent <HardDrives>();
        cpu        = hardware.GetComponent <CPU>();
        Crash      = GameObject.Find("Crash");
        SCM        = Crash.GetComponent <SysCrashMan>();
        cd         = GameControl.control.BootTime;
        cooldown   = 0.256f;
        cooldown1  = 0.256f;
        Screen.SetResolution(Customize.cust.RezX, Customize.cust.RezY, Customize.cust.FullScreen);
        GameControl.control.TimeMulti = 1;

        if (Application.isEditor == true)
        {
            windowRect.width  = Screen.width;
            windowRect.height = Screen.height;
        }
        else
        {
            windowRect.width  = Customize.cust.RezX;
            windowRect.height = Customize.cust.RezY;
        }
    }
コード例 #2
0
        /// <summary>
        /// 判断操作系统是否安装了ArcMap 10.0
        /// </summary>
        /// <returns></returns>
        public static bool CheckArcMap(out string installDir)
        {
            bool checkResult = false;

            installDir = null;
            if (OSCheck.Is64Bit())
            {
                //获得ArcGIS的安装路径
                string sInstall   = ReadRegistry(@"SOFTWARE\Wow6432Node\ESRI\Desktop10.0");//64位
                string arcMapPath = sInstall + @"Bin\ArcMap.exe";
                if (File.Exists(arcMapPath))
                {
                    checkResult = true;
                    installDir  = arcMapPath;
                }
            }
            else
            {
                //取得ArcGIS安装路径
                string sInstall   = ReadRegistry("SOFTWARE\\ESRI\\CoreRuntime");//32位
                string arcMapPath = sInstall + @"Bin\ArcMap.exe";
                if (File.Exists(arcMapPath))
                {
                    checkResult = true;
                    installDir  = arcMapPath;
                }
            }
            return(checkResult);
        }
コード例 #3
0
 public static void KillProcesses(object sender, EventArgs e)
 {
     if (OSCheck.ShowOSSupportMessage())
     {
         ProccessKiller.AutoKillProcesses();
     }
 }
コード例 #4
0
        /// <summary>
        /// 获取ArcGIS10.0 Desktop的安装目录(找不到或未安装时返回null或"")
        /// </summary>
        /// <returns></returns>
        public static string GetDesktopInstallPath()
        {
            string installDir = null;

            if (OSCheck.Is64Bit())
            {
                installDir = ReadRegistry(@"SOFTWARE\Wow6432Node\ESRI\Desktop10.0");//64位
            }
            else
            {
                installDir = ReadRegistry("SOFTWARE\\ESRI\\CoreRuntime");//32位
            }
            return(installDir);
        }