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 --- setup/mainmenu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'setup') diff --git a/setup/mainmenu.c b/setup/mainmenu.c index 2b484418..612c649d 100644 --- a/setup/mainmenu.c +++ b/setup/mainmenu.c @@ -145,7 +145,12 @@ static void InitConfig(void) static void RunGUI(void) { - TXT_Init(); + if (!TXT_Init()) + { + fprintf(stderr, "Failed to initialise GUI\n"); + exit(-1); + } + TXT_SetDesktopTitle(PACKAGE_NAME " Setup ver " PACKAGE_VERSION); MainMenu(); -- cgit v1.2.3