示例#1
0
        void IUtilityCommand.Run(Utility utility, string[] args)
        {
            string[] globalFilenames;
            using (var db = new XccGlobalDatabase(File.OpenRead(args[2])))
                globalFilenames = db.Entries;

            var package = new MixLoader.MixFile(File.OpenRead(args[1]), args[1], globalFilenames);

            foreach (var kv in package.Index.OrderBy(kv => kv.Value.Offset))
            {
                Console.WriteLine("{0}:", kv.Key);
                Console.WriteLine("\tOffset: {0}", kv.Value.Offset);
                Console.WriteLine("\tLength: {0}", kv.Value.Length);
            }
        }
		void IUtilityCommand.Run(Utility utility, string[] args)
		{
			var allPossibleFilenames = new HashSet<string>();
			using (var db = new XccGlobalDatabase(File.OpenRead(args[2])))
				foreach (var e in db.Entries)
					allPossibleFilenames.Add(e);

			var package = new MixLoader.MixFile(File.OpenRead(args[1]), args[1], allPossibleFilenames);
			foreach (var kv in package.Index.OrderBy(kv => kv.Value.Offset))
			{
				Console.WriteLine("{0}:", kv.Key);
				Console.WriteLine("\tOffset: {0}", kv.Value.Offset);
				Console.WriteLine("\tLength: {0}", kv.Value.Length);
			}
		}