public ExtractAllCommand(VFilesList definition) : base(CommandFlags.Inherit, "extractall", "Extract all files from the tag", "extractall [output path]", "If not output path is specified, files will be extracted to the current\n" + "directory.") { Definition = definition; }
public ListCommand(VFilesList definition) : base(CommandFlags.Inherit, "list", "List files stored in the tag.", "list [filter]", "If a filter is specified, only files which contain the filter in their path\n" + "will be listed.") { Definition = definition; }
public ImportCommand(OpenTagCache info, TagInstance tag, VFilesList definition) : base(CommandFlags.None, "import", "Replace a file stored in the tag", "import <virtual path> [filename]", "Replaces a file stored in the tag. The tag will be resized as necessary.") { Info = info; Tag = tag; Definition = definition; }
public ExtractFilesCommand(VFilesList definition) : base(true, "ExtractFiles", "Extracts all virtual files from the tag.", "ExtractFiles [output path]", "If not output path is specified, files will be extracted to the current directory.") { Definition = definition; }
public ExtractCommand(VFilesList definition) : base(CommandFlags.Inherit, "extract", "Extract a file from the tag.", "extract <virtual path> [output path]", "Extracts a file stored in the tag. If the output path is not specified, it will\n" + "be the same as the file's virtual path.\n" + "\n" + "Use \"list\" to find files in the tag.") { Definition = definition; }
public ImportAllCommand(OpenTagCache info, TagInstance tag, VFilesList definition) : base(CommandFlags.None, "importall", "Replace all files stored in the tag", "importall [directory]", "Replaces all file stored in the tag. The tag will be resized as necessary.\n" + "If no directory is specified, files will be loaded from the current directory.") { Info = info; Tag = tag; Definition = definition; }
public ReplaceAllFilesCommand(HaloOnlineCacheContext cacheContext, CachedTagInstance tag, VFilesList definition) : base(false, "ReplaceAllFiles", "Replace all files stored in the tag.", "ReplaceAllFiles <directory>", "Replaces all file stored in the tag. The tag will be resized as necessary.") { CacheContext = cacheContext; Tag = tag; Definition = definition; }
public ReplaceAllFilesCommand(GameCache cache, CachedTag tag, VFilesList definition) : base(false, "ReplaceAllFiles", "Replace all files stored in the tag.", "ReplaceAllFiles <directory>", "Replaces all file stored in the tag. The tag will be resized as necessary.") { Cache = cache; Tag = tag; Definition = definition; }
public ListFilesCommand(VFilesList definition) : base(true, "ListFiles", "List files stored in the tag.", "ListFiles [filter]", "If a filter is specified, only files which contain the filter in their path\n" + "will be listed.") { Definition = definition; }
public VfslExtractAllCommand(VFilesList list) : base( CommandFlags.Inherit, "extractall", "Extract all files from the tag", "extractall [output path]", "If not output path is specified, files will be extracted to the current\n" + "directory.") { _list = list; }
public VfslListCommand(VFilesList list) : base( CommandFlags.Inherit, "list", "List files stored in the tag", "list [filter]", "If a filter is specified, only files which contain the filter in their path\n" + "will be listed.") { _list = list; }
public AddFileCommand(HaloOnlineCacheContext cacheContext, CachedTagInstance tag, VFilesList definition) : base(true, "AddFile", "Adds a new file to the virtual files list.", "AddFile <folder> <path>", "Adds a new file to the virtual files list.") { CacheContext = cacheContext; Tag = tag; Definition = definition; }
public AddFileCommand(GameCache cache, CachedTag tag, VFilesList definition) : base(true, "AddFile", "Adds a new file to the virtual files list.", "AddFile <folder> <path>", "Adds a new file to the virtual files list.") { Cache = cache; Tag = tag; Definition = definition; }
public ReplaceFileCommand(HaloOnlineCacheContext cacheContext, CachedTagInstance tag, VFilesList definition) : base(false, "ReplaceFile", "Replace a file stored in the tag", "ReplaceFile <virtual path> [filename]", "Replaces a file stored in the tag. The tag will be resized as necessary.") { CacheContext = cacheContext; Tag = tag; Definition = definition; }
public ReplaceFileCommand(GameCache cache, CachedTag tag, VFilesList definition) : base(false, "ReplaceFile", "Replace a file stored in the tag", "ReplaceFile <virtual path> [filename]", "Replaces a file stored in the tag. The tag will be resized as necessary.") { Cache = cache; Tag = tag; Definition = definition; }
public VfslImportCommand(FileInfo fileInfo, TagCache cache, HaloTag tag, VFilesList list) : base( CommandFlags.None, "import", "Replace a file stored in the tag", "import <virtual path> [filename]", "Replaces a file stored in the tag. The tag will be resized as necessary.") { _fileInfo = fileInfo; _cache = cache; _tag = tag; _list = list; }
public ExtractFileCommand(VFilesList definition) : base(true, "ExtractFile", "Extract a file from the tag.", "ExtractFile <virtual path> [output path]", "Extracts a file stored in the tag. If the output path is not specified, it will\n" + "be the same as the file's virtual path.\n" + "\n" + "Use the \"ListFiles\" command to find files in the tag.") { Definition = definition; }
public VfslImportAllCommand(FileInfo fileInfo, TagCache cache, HaloTag tag, VFilesList list) : base( CommandFlags.None, "importall", "Replace all files stored in the tag", "importall [directory]", "Replaces all file stored in the tag. The tag will be resized as necessary.\n" + "If no directory is specified, files will be loaded from the current directory.") { _fileInfo = fileInfo; _cache = cache; _tag = tag; _list = list; }
public static void Populate(CommandContext context, HaloOnlineCacheContext cacheContext, CachedTagInstance tag, VFilesList definition) { context.AddCommand(new ListFilesCommand(definition)); context.AddCommand(new ExtractFileCommand(definition)); context.AddCommand(new ExtractFilesCommand(definition)); context.AddCommand(new ReplaceFileCommand(cacheContext, tag, definition)); context.AddCommand(new ReplaceAllFilesCommand(cacheContext, tag, definition)); context.AddCommand(new AddFileCommand(cacheContext, tag, definition)); }
public static CommandContext Create(CommandContext parent, GameCache cache, CachedTag tag, VFilesList definition) { var groupName = cache.StringTable.GetString(tag.Group.Name); var context = new CommandContext(parent, string.Format("{0:X8}.{1}", tag.Index, groupName)); Populate(context, cache, tag, definition); return(context); }
public static void Populate(CommandContext context, GameCache cache, CachedTag tag, VFilesList definition) { context.AddCommand(new ListFilesCommand(definition)); context.AddCommand(new ExtractFileCommand(definition)); context.AddCommand(new ExtractFilesCommand(definition)); context.AddCommand(new ReplaceFileCommand(cache, tag, definition)); context.AddCommand(new ReplaceAllFilesCommand(cache, tag, definition)); context.AddCommand(new AddFileCommand(cache, tag, definition)); }
public static CommandContext Create(CommandContext parent, OpenTagCache info, TagInstance tag, VFilesList vfsl) { var groupName = info.StringIDs.GetString(tag.Group.Name); var context = new CommandContext(parent, string.Format("{0:X8}.{1}", tag.Index, groupName)); return(context); }
public static CommandContext Create(CommandContext parent, HaloOnlineCacheContext cacheContext, CachedTagInstance tag, VFilesList definition) { var groupName = cacheContext.GetString(tag.Group.Name); var context = new CommandContext(parent, string.Format("{0:X8}.{1}", tag.Index, groupName)); Populate(context, cacheContext, tag, definition); return(context); }
public static void Populate(CommandContext context, OpenTagCache info, TagInstance tag, VFilesList vfsl) { context.AddCommand(new ListCommand(vfsl)); context.AddCommand(new ExtractCommand(vfsl)); context.AddCommand(new ExtractAllCommand(vfsl)); context.AddCommand(new ImportCommand(info, tag, vfsl)); context.AddCommand(new ImportAllCommand(info, tag, vfsl)); }
public static CommandContext Create(CommandContext parent, FileInfo fileInfo, TagCache cache, HaloTag tag, VFilesList vfsl) { var context = new CommandContext(parent, string.Format("{0:X8}.vfsl", tag.Index)); context.AddCommand(new VfslListCommand(vfsl)); context.AddCommand(new VfslExtractCommand(vfsl)); context.AddCommand(new VfslExtractAllCommand(vfsl)); context.AddCommand(new VfslImportCommand(fileInfo, cache, tag, vfsl)); context.AddCommand(new VfslImportAllCommand(fileInfo, cache, tag, vfsl)); return(context); }