main
	Open os window/output

	Init argv access and searching

	Init filesystem
	Init endian
	Init console
	Init networking

	if(dedicated host)
		Start server loop
	else if(Start client)
		if(!Open Display)
			if(!Open default display)
				Error and goto os window(only allow quit)
		Hide os window/output
		Init input
		Init sound

		Start client loop
			if(done)
				Close sound
				Close input
				Close display
				Show os window/output

			Get input
			Send input to console, menu, or game
			Update/send to server
			Draw game, menu, and console