示例#1
0
        public void SalvarNCGR(bool paletaFoiModificada)
        {
            MemoryStream novoNgcr = new MemoryStream();

            using (BinaryWriter bw = new BinaryWriter(novoNgcr))
            {
                base.EscreverPropiedades(bw);
                Char.EscreverPropiedades(bw);
                if (Cpos != null)
                {
                    Cpos.EscreverPropiedades(bw);
                }
            }

            File.WriteAllBytes(base.NitroFilePath, novoNgcr.ToArray());

            if (paletaFoiModificada)
            {
                ArquivoNclr.SalvarNclr();
            }

            if (ArquivoNscr != null)
            {
                ArquivoNscr.SalvarNscr();
            }

            if (ArquivoNcer != null)
            {
                ArquivoNcer.SalvarNcer();
            }
        }
示例#2
0
 private void SetNgcrProperties(BinaryReader br, string exportPath)
 {
     ExportPath = exportPath;
     Char       = new Char(br);
     if (SectionCount > 1)
     {
         Cpos = new Cpos(br);
     }
 }