Exemplo n.º 1
0
 private void chkDoubleResolution_CheckedChanged(object sender, EventArgs e)
 {
     if (!loadingData)
     {
         string targetValue = "0";
         if (chkDoubleResolution.Checked)
         {
             targetValue = "1";
         }
         ConfigFileHandler.SetSettingValue(GameManager.getInstance().GetConfigFilePath(_gi.GAME_ID), "gpu_neon.enhancement_enable", targetValue);
     }
 }
Exemplo n.º 2
0
        private void LoadData()
        {
            loadingData       = true;
            txtGameName.Text  = _gi.GAME_TITLE_STRING;
            txtPublisher.Text = _gi.PUBLISHER_NAME;
            nudYear.Value     = _gi.RELEASE_YEAR;
            nudPlayers.Value  = _gi.PLAYERS;
            nudGameId.Value   = _gi.GAME_ID;

            discInfos = GameManager.getInstance().GetDiscInfo(_gi.GAME_ID);
            comboBox1.Items.Clear();
            comboBox1.Items.AddRange(discInfos);

            this.chkConfig.Checked      = System.IO.File.Exists(GameManager.getInstance().GetConfigFilePath(_gi.GAME_ID));
            chkDoubleResolution.Checked = false;
            chkDoubleResolution.Enabled = chkConfig.Checked;
            if (chkDoubleResolution.Enabled)
            {
                chkDoubleResolution.Checked = ConfigFileHandler.GetSettingValue(GameManager.getInstance().GetConfigFilePath(_gi.GAME_ID), "gpu_neon.enhancement_enable") == "1";
            }
            loadingData = false;
        }