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
            List <InsigniaMetadata> entities = InsigniaParser.Parse(memFile, files);

            InsigniaParser.Write(entities);
        }
        public static void Export(List <PackFileEntry> files, MemoryMappedFile memFile)
        {
            if (Hash.CheckHash(VariableDefines.OUTPUT + "ms2-insignia-metadata"))
            {
                Console.WriteLine("\rSkipping insignia metadata!");
                return;
            }

            // Parse and save some item data from xml file
            List <InsigniaMetadata> entities = InsigniaParser.Parse(memFile, files);

            InsigniaParser.Write(entities);
            Hash.WriteHash(VariableDefines.OUTPUT + "ms2-insignia-metadata");
        }