Exemplo n.º 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();
			}
		}
Exemplo n.º 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);
			}
		}
Exemplo n.º 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);
            }
        }