Beispiel #1
0
        private static void BuildProject(string inputProjectFilename, string outputAinFilename)
        {
            var reader = new AssemblerProjectReader();

            reader.LoadProject(inputProjectFilename);
            var ainFile = reader.MakeAinFile();

            if (outputAinFilename.EndsWith("_"))
            {
                ainFile.WriteAinFile(outputAinFilename);
            }
            else
            {
                ainFile.WriteAndEncryptAinFile(outputAinFilename);
            }
        }
Beispiel #2
0
        private void Build(string inputProjectFileName, string outputAinFileName)
        {
            bool encrypt = this.EncryptCheckBox.Checked;
            //todo: encrypt it
            AssemblerProjectReader reader = new AssemblerProjectReader();

            reader.LoadProject(inputProjectFileName);
            var ainFile = reader.MakeAinFile();

            if (encrypt)
            {
                ainFile.WriteAndEncryptAinFile(outputAinFileName);
            }
            else
            {
                ainFile.WriteAinFile(outputAinFileName);
            }
        }