From 939bb4cf3e586643919d606620bf298f2351d735 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 24 Oct 2006 19:23:16 +0000 Subject: Detect failures to initialise textscreen library and bomb out with an error mess age. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 727 --- src/net_gui.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/net_gui.c b/src/net_gui.c index 51ceb1f8..f322da15 100644 --- a/src/net_gui.c +++ b/src/net_gui.c @@ -223,7 +223,12 @@ static void CheckMD5Sums(void) void NET_WaitForStart(void) { - TXT_Init(); + if (!TXT_Init()) + { + fprintf(stderr, "Failed to initialise GUI\n"); + exit(-1); + } + I_SetWindowCaption(); I_SetWindowIcon(); -- cgit v1.2.3