idTech4.idConsole.DeveloperWrite C# (CSharp) Method

DeveloperWrite() public static method

Prints message that only shows up if the "developer" cvar is set.
public static DeveloperWrite ( string format ) : void
format string
return void
		public static void DeveloperWrite(string format, params object[] args)
		{
			if((idE.CvarSystem.IsInitialized == false) || (idE.CvarSystem.GetBool("developer") == false))
			{
				return; // don't confuse non-developers with techie stuff...
			}

			// never refresh the screen, which could cause reentrency problems
			bool temp = idE.System.RefreshOnPrint;

			Write(string.Format("{0}{1}", idColorString.Red, string.Format(format, args)));

			idE.System.RefreshOnPrint = temp;
		}