Exemplo n.º 1
0
 private void ActivateProfile(string profileName)
 {
     if (profileName == _defaultProfile._name)
         return;
     _profile = new CUEToolsProfile(profileName);
     SettingsReader sr = new SettingsReader("CUE Tools", string.Format("profile-{0}.txt", _profile._name), Application.ExecutablePath);
     _profile.Load(sr);
     _profile._config.encoders = _defaultProfile._config.encoders;
     _profile._config.decoders = _defaultProfile._config.decoders;
     _profile._config.formats = _defaultProfile._config.formats;
     _profile._config.scripts = _defaultProfile._config.scripts;
     ActivateProfile();
 }
Exemplo n.º 2
0
		private void frmBatch_Load(object sender, EventArgs e)
		{
			textBox1.Hide();
			//SettingsReader sr = new SettingsReader("CUE Tools", "settings.txt", Application.ExecutablePath);
			//_profile.Load(sr);
			//_reducePriority = sr.LoadBoolean("ReducePriority") ?? true;
			_reducePriority = true;

			_profile = new CUEToolsProfile(_profileName);
			SettingsReader sr = new SettingsReader("CUE Tools", string.Format("profile-{0}.txt", _profileName), Application.ExecutablePath);
			_profile.Load(sr);
			
			if (_reducePriority)
				Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.Idle;

			if (_profile._action != CUEAction.Verify)
				txtOutputFile.Show();

			StartConvert();
		}