public void WriteFile(DirectoryInfo directory)
        {
            Logger.log(ADTfileInfo.Name, Logger.Type.WRITE, directory.FullName);

            if (!directory.Exists)
            {
                directory.Create();
            }

            using (BinaryWriter writer = new BinaryWriter(File.Open(directory.FullName + "\\" + ADTfileInfo.Name, FileMode.Create)))
            {
                writer.Write(MVER.GetBytes());

                if (MLFD != null)
                {
                    writer.Write(MLFD.GetBytes());
                }

                writer.Write(MMDX.GetBytes());
                writer.Write(MMID.GetBytes());
                writer.Write(MWMO.GetBytes());
                writer.Write(MWID.GetBytes());
                writer.Write(MLDD.GetBytes());
                writer.Write(MLDX.GetBytes());
                writer.Write(MLMD.GetBytes());
                writer.Write(MLMX.GetBytes());

                Logger.log(DateTime.Now.ToString(), Logger.Type.LEVEL1);
            }
        }
        public void WriteFile(DirectoryInfo directory)
        {
            Logger.log(ADTfileInfo.Name, Logger.Type.WRITE, directory.FullName);

            if (!directory.Exists)
            {
                directory.Create();
            }

            using (BinaryWriter writer = new BinaryWriter(File.Open(directory.FullName + "\\" + ADTfileInfo.Name, FileMode.Create)))
            {
                writer.Write(MVER.GetBytes());
                writer.Write(MMDX.GetBytes());
                writer.Write(MMID.GetBytes());
                writer.Write(MWMO.GetBytes());
                writer.Write(MWID.GetBytes());
                writer.Write(MDDF.GetBytes());
                writer.Write(MODF.GetBytes());


                foreach (MCNK_OBJ0 x in MCNKs)
                {
                    writer.Write(x.GetBytes());
                }


                Logger.log(DateTime.Now.ToString(), Logger.Type.LEVEL1);
            }
        }