Nexus.Client.Games.Gamebryo.PluginManagement.Sorter.PluginSorter.UpdateMasterlist C# (CSharp) Method

UpdateMasterlist() public method

Updates the masterlist at the given path.
public UpdateMasterlist ( ) : void
return void
		public void UpdateMasterlist()
		{
			bool booExist = File.Exists(MasterlistPath);
			bool booUpdated = false;
			UInt32 uintStatus = 0;
			string strDirectory = Path.GetDirectoryName(MasterlistPath);
			if (!Directory.Exists(strDirectory))
				Directory.CreateDirectory(strDirectory);
			try
			{
				string remoteUrl = String.Format("http://github.com/loot/{0}.git", GameMode.ModeId);
				string remoteBranch = "master";
				
				uintStatus = m_dlgUpdateMasterlist(m_ptrSorterDb, MasterlistPath, remoteUrl, remoteBranch, ref booUpdated);
			}
			catch(SorterException e)
			{
			}
			catch(AccessViolationException)
			{
			}
			HandleStatusCode(uintStatus);

			if (booExist && booUpdated)
				EvaluateMasterlist();
			else if (booUpdated)
				Load(MasterlistPath, UserlistPath);
		}