Exemplo n.º 1
0
        /// <summary>
        /// Program entry point
        /// </summary>
        /// <param name="args">Arguments passed to the program</param>
        public static void Main(String[] args)
        {
            Console.WriteLine("SharpCli started");

            // Get SharpCli to patch all SharpDX DLLs to implement generated functions
            InteropApp interopApp = new InteropApp(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));

            interopApp.PatchAll();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Main of this program.
        /// </summary>
        /// <param name="args">The args.</param>
        static void Main(string[] args)
        {
            try
            {
                if (args.Length != 1)
                {
                    Console.WriteLine("{0} file_path is expecting one file argument",
                                      Assembly.GetExecutingAssembly().GetName().Name);
                    Environment.Exit(1);
                }

                string file    = args[0];
                var    program = new InteropApp();
                program.PatchFile(file);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                Environment.Exit(1);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Main of this program.
        /// </summary>
        /// <param name="args">The args.</param>
        static void Main(string[] args)
        {
            try
            {
                if (args.Length != 1)
                {
                    Console.WriteLine("{0} file_path is expecting one file argument",
                                      Assembly.GetExecutingAssembly().GetName().Name);
                    Environment.Exit(1);
                }

                string file = args[0];
                var program = new InteropApp();
                program.PatchFile(file);
            } 
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                Environment.Exit(1);
            }
        }