idTech4.idSystem.FatalError C# (CSharp) Method

FatalError() private method

private FatalError ( string format ) : void
format string
return void
		internal void FatalError(string format, params object[] args)
		{
			// if we got a recursive error, make it fatal
			if(_errorEntered != ErrorType.None)
			{
				// if we are recursively erroring while exiting
				// from a fatal error, just kill the entire
				// process immediately, which will prevent a
				// full screen rendering window covering the
				// error dialog
				idConsole.WriteLine("FATAL: recursed fatal error:\n{0}", string.Format(format, args));

				// write the console to a log file?
				this.Exit();
			}

			_errorEntered = ErrorType.Fatal;

			if(idE.CvarSystem.GetBool("r_fullscreen") == true)
			{
				idE.CmdSystem.BufferCommandText(Execute.Now, "vid_restart partial windowed");
			}

			Shutdown();
			Sys_Error(format, args);
		}
		#endregion