Example #1
0
        private static void GerarArquivoPontos(string DIRETORIO_RAIZ, string ldxOrigem, string arquivoDestino)
        {
            Console.WriteLine("Importing Data from Pontos 6 Files... Wait a moment...");
            LDX2.ImportacaoLDX importacao = new LDX2.ImportacaoLDX();

            importacao.ImportarProgramacao(ldxOrigem, DIRETORIO_RAIZ);
            if (Directory.Exists(DIRETORIO_RAIZ + "\\videos"))
            {
                Directory.Delete(DIRETORIO_RAIZ + "\\videos", true);
            }


            if (DIRETORIO_RAIZ.EndsWith("\\"))
            {
                DIRETORIO_RAIZ = DIRETORIO_RAIZ.Substring(0, DIRETORIO_RAIZ.Length - 1);
                if (DIRETORIO_RAIZ.EndsWith("\\"))
                {
                    DIRETORIO_RAIZ = DIRETORIO_RAIZ.Substring(0, DIRETORIO_RAIZ.Length - 1);
                }
            }
            Console.WriteLine("Creating a B12 File.");
            Memorias.NandFFS m = new Memorias.NandFFS();
            if (Directory.Exists(DIRETORIO_RAIZ + "\\FRT_APP"))
            {
                //m.GerarArquivoNand(DIRETORIO_RAIZ + "\\FRT_APP", DIRETORIO_RAIZ + "\\nss.nfs");
                m.GerarArquivoNandOtimizado(DIRETORIO_RAIZ + "\\FRT_APP", DIRETORIO_RAIZ + "\\nss.nfs");
                Directory.Delete(DIRETORIO_RAIZ + "\\FRT_APP", true);
            }

            //m.GerarArquivoNand(DIRETORIO_RAIZ, arquivoDestino);
            m.GerarArquivoNandOtimizado(DIRETORIO_RAIZ, arquivoDestino);

            Console.WriteLine("B12 file created.");

            Console.WriteLine("Deleting Temporary Files. ");;
            Directory.Delete(DIRETORIO_RAIZ + "\\fontes", true);
            Directory.Delete(DIRETORIO_RAIZ + "\\idiomas", true);
            Directory.Delete(DIRETORIO_RAIZ + "\\msgs", true);
            Directory.Delete(DIRETORIO_RAIZ + "\\paineis", true);
            Directory.Delete(DIRETORIO_RAIZ + "\\regioes", true);
            Directory.Delete(DIRETORIO_RAIZ + "\\roteiros", true);

            File.Delete(DIRETORIO_RAIZ + "\\param.fix");
            File.Delete(DIRETORIO_RAIZ + "\\param.var");

            File.Delete(DIRETORIO_RAIZ + "\\nss.nfs");

            Console.WriteLine("Temporary Files deleted. ");
        }
Example #2
0
 private static void GerarDiretoriosFAT(string b12Origem, string diretorioDestino)
 {
     Memorias.NandFFS m = new Memorias.NandFFS();
     m.GerarDiretoriosFAT(b12Origem, diretorioDestino);
 }