protected new static void Main(string[] args) { try { game = new JoystickOptionsGamesTest(); try{ if (EngineConfig.DebugInfo) { User32.SetWindowPos(User32.PtrToConsole, (IntPtr)0, consolePosition.X, consolePosition.Y, 0, 0, User32.SWP_NOSIZE); } } catch (Exception ex) { } EngineConfig.DisplayingMinimap = false; game.Go(); } catch (SEHException sex) { // Check if it's an Ogre Exception if (OgreException.IsThrown) { FrameWorkStaticHelper.ShowOgreException(sex); } else { throw; } } catch (RootInitializationException) { // i tak będzie reload shouldReload = true; } if (shouldReload) { ReloadGame(); } if (game.afterExit != null) { game.afterExit(); } }
private static void Main(string[] args) { try { KamilTestView app = new KamilTestView(); app.Go(); } catch (SEHException sex) { // Check if it's an Ogre Exception if (OgreException.IsThrown) { FrameWorkStaticHelper.ShowOgreException(sex); } else { throw; } } }