static void Main(string[] args)
        {
            if(args.Length > 0 && args[0] == "-taco")
                Apprehensive = true;
            #if !DEBUG
            try
            {
            #endif
            #if WINDOWS
                SavePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Accelerated Delivery\\";
                if(!Directory.Exists(SavePath))
                    Directory.CreateDirectory(SavePath);
            #elif XBOX
                SavePath = "";
            #endif
                Cutter = new BoxCutter(false, false, SavePath);

                using(Game = new BaseGame())
                    Game.Run();
            #if !DEBUG
            }
            catch(Exception ex)
            {
                using(CrashDebugGame game = new CrashDebugGame(ex, Cutter))
                    game.Run();
            }
            #endif
            Cutter.Close();
        }
 public CrashDebugGame(Exception ex, BoxCutter cutter)
 {
     exception = ex;
     Cutter = cutter;
     try
     {
         Cutter.WriteExceptionToLog(ex, true);
     }
     catch { }
     g = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
 }
 public static void FirstStageInitialization(Game g, BoxCutter c)
 {
     Game = g;
     Cutter = c;
     Space = new Space();
     Space.ForceUpdater.Gravity = new Vector3(0, 0, -9.81f);
 }
 public static void Initialize(GraphicsDeviceManager gdm, BoxCutter c, Space s, Effect shader, Texture2D texture)
 {
     Cutter = c;
     Space = s;
     GDM = gdm;
     OnGDMCreation(shader, texture);
     GDM.DeviceReset += onGDMReset;
     HiDef = GDM.GraphicsProfile == GraphicsProfile.HiDef;
     Camera = new MyCamera(MathHelper.PiOver4, GraphicsDevice.Viewport.AspectRatio, 1f, 10000f);
 }