Posted by PlatformerExpandedError on Sat 27 Jun 18:42
report abuse | download | new post
- using System;
- using ErrorReporter;
- namespace Platformer_Expanded
- {
- static class Program
- {
- static bool debugging = false;
- // TO FORCE THE ERROR ENGINE TO BELIEVE IT ISNT IN DEBUG MODE, CHANGE THE VARIABLE BELOW TO TRUE
- static bool manualdebugdisable = true;
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- static void Main(string[] args)
- {
- #if DEBUG
- if (!manualdebugdisable && System.Diagnostics.Debugger.IsAttached)
- {
- debugging = true;
- }
- #endif
- if (debugging)
- {
- {
- game.Run();
- }
- }
- else
- {
- while (true)
- {
- try
- {
- {
- game.Run();
- break;
- }
- }
- catch (Exception e)
- {
- try
- {
- {
- err.RestartEnabled = true;
- err.Run();
- }
- }
- catch (RestartNeededException)
- {
- Main(null);
- }
- }
- }
- }
- }
- }
- }
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.