static void Main(string[] args) { #if !DEBUG try { #endif #if WINDOWS SavePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\LD28\\"; if (!Directory.Exists(SavePath)) { Directory.CreateDirectory(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(); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { try { using (GameBase game = new GameBase()) { game.Run(); } } catch (Exception e) { using (CrashDebugGame game = new CrashDebugGame(e, @"fonts\default")) { game.Run(); } } }