public void Export()
        {
            string headerFile            = VariableDefines.XML_PATH.Replace(".m2d", ".m2h");
            List <PackFileEntry> files   = FileList.ReadFile(File.OpenRead(headerFile));
            MemoryMappedFile     memFile = MemoryMappedFile.CreateFromFile(VariableDefines.XML_PATH);

            // Parse and save some item data from xml file
            PrestigeMetadata PrestigeMetadata = PrestigeParser.Parse(memFile, files);

            PrestigeParser.Write(PrestigeMetadata);
        }
Ejemplo n.º 2
0
        public static void Export(List <PackFileEntry> files, MemoryMappedFile memFile)
        {
            if (Hash.CheckHash(VariableDefines.OUTPUT + "ms2-prestige-metadata"))
            {
                Console.WriteLine("\rSkipping prestige metadata!");
                return;
            }

            // Parse and save some item data from xml file
            PrestigeMetadata PrestigeMetadata = PrestigeParser.Parse(memFile, files);

            PrestigeParser.Write(PrestigeMetadata);
            Hash.WriteHash(VariableDefines.OUTPUT + "ms2-prestige-metadata");
        }