/// <summary> /// Creates a new MPFS2 image builder /// </summary> /// <param name="localPath">The directory to save the image in, and to read/write index files</param> /// <param name="localFile">The output file name for the image</param> public MPFS2Builder(String localPath, String localFile) { if (!localPath.EndsWith("\\")) { localPath += "\\"; } this.LocalPath = localPath; this.LocalFile = localFile; this.dynamicTypes = new Collection <string>(); this.nonGZipTypes = new Collection <string>(); this.log = new List <string>(); this.files = new List <MPFSFileRecord>(); this.dynVarParser = new DynamicVariableParser(localPath); this.indexUpdated = false; }
/// <summary> /// Creates a new MPFS2 image builder /// </summary> /// <param name="localPath">The directory to save the image in, and to read/write index files</param> /// <param name="localFile">The output file name for the image</param> public MPFS2Builder(String localPath, String localFile) { if (!localPath.EndsWith("\\")) localPath += "\\"; this.LocalPath = localPath; this.LocalFile = localFile; this.dynamicTypes = new Collection<string>(); this.nonGZipTypes = new Collection<string>(); this.log = new List<string>(); this.files = new List<MPFSFileRecord>(); this.dynVarParser = new DynamicVariableParser(localPath); this.indexUpdated = false; }