예제 #1
0
        private static void Main(string[] args)
        {
            if (args.Length == 1)
            {
                ProfileToGenerate = args[0];
            }

            var profileDirectory = Path.Combine(ProfileDirectory, ProfileToGenerate);

            Console.WriteLine(string.Join(Environment.NewLine, new[] {
                "This program Copyright (C) 2009 Eugeny Grishul",
                "This program comes with ABSOLUTELY NO WARRANTY",
                "This is free software, and you are welcome to redistribute it under certain conditions",
                "", ""
            }));

            if (!Directory.Exists(profileDirectory))
            {
                Console.WriteLine("Profile directory {0} not exists!", profileDirectory);
                return;
            }

            RuntimeDumper.LoadSettings(ProfileToGenerate);

            if (ProfileToGenerate == RuntimeDumper.NativeProfile)
            {
                RuntimeDumper.Dump(ProfileToGenerate);
            }

            //HeaderAnalyzer.Analyze( ProfileToGenerate );

            ProxyBuilder.GenerateProfile(ProfileToGenerate);
        }