Example #1
0
		static void Main(string[] args)
		{
			try
			{
				var runner = new GameRunner();
				runner.PreStart += AttachHooks;
				runner.Main(args);
			}
			catch (Exception ex)
			{
				Console.WriteLine(ex);
				Console.ReadKey();
			}
		}
Example #2
0
		static void Main(string[] args)
		{
			try
			{
				Terraria.Program.StartForceLoad();

				var runner = new GameRunner();
				runner.PreStart += AttachHooks;
				runner.Main(args);
			}
			catch (Exception ex)
			{
				Console.WriteLine(ex);
			}
		}
Example #3
0
        public static void Start(bool forceLoadAssembly, string[] args)
        {
            try
            {
                // this ensures OTAPI has it's XNA shims in place
                if (forceLoadAssembly)
                {
                    ForceLoadThread();
                }
                else
                {
                    Terraria.Main.SkipAssemblyLoad = true;
                }

                var runner = new GameRunner();
                runner.PreStart += AttachHooks;
                runner.Main(args);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }