Nexus.Client.ModManagement.ReadMeManager.GetModReadMe C# (CSharp) Method

GetModReadMe() public method

Get the ReadMe file path if it exists.
public GetModReadMe ( string p_strModName, string p_strFileName ) : string
p_strModName string
p_strFileName string The mod file name.
return string
		public string GetModReadMe(string p_strModName, string p_strFileName)
		{
			string strReadMe = String.Empty;
			if (m_dicReadMeFiles.ContainsKey(p_strModName))
			{
				string strModReadMeFile = p_strModName + ".7z";
				strModReadMeFile = Path.Combine(m_strReadMePath, strModReadMeFile);
				if (File.Exists(strModReadMeFile))
				{
					PurgeTempFolder();
					Archive arcFile = new Archive(strModReadMeFile);
					byte[] bteData = arcFile.GetFileContents(p_strFileName);
					if ((bteData != null) && (bteData.Length > 0))
					{
						TxFileManager tfmFileManager = new TxFileManager();
						string strReadMeFile = Path.Combine(ReadMeTempPath, p_strFileName);
						tfmFileManager.WriteAllBytes(strReadMeFile, bteData);
						return strReadMeFile;
					}
				}
			}

			return strReadMe;
		}