public NALACore() { try { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; Core = this; Dirry.InitAltDrives(); UseJCR6.BubbleInit.Init(); #if !DEBUG graphics.HardwareModeSwitch = false; graphics.IsFullScreen = true; graphics.ApplyChanges(); #else graphics.PreferredBackBufferWidth = 1200; graphics.PreferredBackBufferHeight = 1000; #endif } catch (System.Exception Allemaal_naar_de_klote) { #if DEBUG Confirm.Annoy($"ERROR!\n{Allemaal_naar_de_klote.Message}\n\n{Allemaal_naar_de_klote.StackTrace}\n", "NALA Init error (CO)", System.Windows.Forms.MessageBoxIcon.Error); #else Confirm.Annoy($"ERROR!\n{Allemaal_naar_de_klote.Message}\n\nDid you install everything propely, or is the engine broken?\n", "NALA Init error (C))", System.Windows.Forms.MessageBoxIcon.Error); #endif System.Environment.Exit(10); } }
static void Main() { using (var game = new NALACore()) game.Run(); }