/// <summary> /// Retrieves the list of files in the specified folder in the mod. /// </summary> /// <param name="p_strFolder">The folder whose file list is to be retrieved.</param> /// <param name="p_booRecurse">Whether to return files that are in subdirectories of the given directory.</param> /// <returns>The list of files in the specified folder in the mod.</returns> public string[] GetModFileList(string p_strFolder, bool p_booRecurse) { string[] strFiles = null; strFiles = Mod.GetFileList(p_strFolder, p_booRecurse).ToArray(); for (int i = strFiles.Length - 1; i >= 0; i--) { strFiles[i] = strFiles[i].Replace(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar); } return(strFiles); }
/// <summary> /// Retrieves the list of files in the mod. /// </summary> /// <returns>The list of files in the mod.</returns> public string[] GetModFileList() { string[] strFiles = null; strFiles = Mod.GetFileList(null, true).ToArray(); for (int i = strFiles.Length - 1; i >= 0; i--) { strFiles[i] = strFiles[i].Replace(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar); } return(strFiles); }
/// <summary> /// Performs a basic install of the mod. /// </summary> /// <remarks> /// A basic install installs all of the file in the mod to the Data directory /// or activates all esp and esm files. /// </remarks> /// <returns><c>true</c> if the installation succeed; /// <c>false</c> otherwise.</returns> public bool PerformBasicInstall() { return(BasicModInstall(Mod.GetFileList(null, true))); }