示例#1
0
        private void updateProfile()
        {
            if (!saveProfile || selectedProfile == null)
            {
                return; //no changes have been made or no profile is selected
            }
            selectedProfile.EmulatorPath     = emuPathTextBox.Text;
            selectedProfile.WorkingDirectory = workingDirTextBox.Text;
            selectedProfile.Arguments        = argumentsTextBox.Text;
            selectedProfile.UseQuotes        = useQuotesCheckBox.Checked;
            selectedProfile.SuspendMP        = suspendMPCheckBox.Checked;
            selectedProfile.DelayResume      = delayResumeCheckBox.Checked;
            selectedProfile.ResumeDelay      = (int)resumeDelayUpDown.Value;

            selectedProfile.EnableGoodmerge    = enableGoodCheckBox.Checked;
            selectedProfile.GoodmergeTags      = goodComboBox.Text.Trim();
            selectedProfile.MountImages        = mountImagesCheckBox.Checked;
            selectedProfile.EscapeToExit       = escExitCheckBox.Checked;
            selectedProfile.CheckController    = checkControllerCheckBox.Checked;
            selectedProfile.StopEmulationOnKey = boolFromCheckState(stopEmulationCheckBox.CheckState);

            selectedProfile.PreCommand             = preCommandText.Text;
            selectedProfile.PreCommandWaitForExit  = preCommandWaitCheck.Checked;
            selectedProfile.PreCommandShowWindow   = preCommandWindowCheck.Checked;
            selectedProfile.PostCommand            = postCommandText.Text;
            selectedProfile.PostCommandWaitForExit = postCommandWaitCheck.Checked;
            selectedProfile.PostCommandShowWindow  = postCommandWindowCheck.Checked;

            selectedProfile.Save();
            saveProfile = false;
        }
示例#2
0
 void updatePCSettings()
 {
     if (!savePCSettings || currentPCProfile == null)
     {
         return;
     }
     savePCSettings                          = false;
     currentPCProfile.SuspendMP              = suspendMPCheckBox.Checked;
     currentPCProfile.Arguments              = argumentsTextBox.Text;
     currentPCProfile.LaunchedExe            = launchedFileTextBox.Text;
     currentPCProfile.PreCommand             = preCommandText.Text;
     currentPCProfile.PreCommandWaitForExit  = preCommandWaitCheck.Checked;
     currentPCProfile.PreCommandShowWindow   = preCommandWindowCheck.Checked;
     currentPCProfile.PostCommand            = postCommandText.Text;
     currentPCProfile.PostCommandWaitForExit = postCommandWaitCheck.Checked;
     currentPCProfile.PostCommandShowWindow  = postCommandWindowCheck.Checked;
     currentPCProfile.Save();
 }
示例#3
0
        private void addProfileButton_Click(object sender, EventArgs e)
        {
            if (selectedEmulator == null)
            {
                return;
            }

            using (Conf_NewProfile profileDlg = new Conf_NewProfile(selectedEmulator, null))
            {
                if (profileDlg.ShowDialog() != DialogResult.OK || profileDlg.EmulatorProfile == null)
                {
                    return;
                }

                EmulatorProfile profile = profileDlg.EmulatorProfile;
                profile.Save();
                profileComboBox.Items.Add(profile);
                profileComboBox.SelectedItem = profile;
            }
        }
示例#4
0
        void addProfileButton_Click(object sender, EventArgs e)
        {
            if (selectedGame == null)
            {
                return;
            }
            updatePCSettings();
            using (Conf_NewProfile profileDlg = new Conf_NewProfile(selectedGame.ParentEmulator, null))
            {
                if (profileDlg.ShowDialog() != DialogResult.OK || profileDlg.EmulatorProfile == null)
                {
                    return;
                }

                EmulatorProfile profile = profileDlg.EmulatorProfile;
                profile.GameId    = selectedGame.GameID;
                profile.SuspendMP = true;
                profile.Save();
                pcProfileComboBox.Items.Add(profile);
                pcProfileComboBox.SelectedItem = profile;
            }
            loadProfileDropdown(selectedGame);
        }