diff options
author | Simon Howard | 2006-10-24 19:23:16 +0000 |
---|---|---|
committer | Simon Howard | 2006-10-24 19:23:16 +0000 |
commit | 939bb4cf3e586643919d606620bf298f2351d735 (patch) | |
tree | 2dae86b4143f735e57e1073b901ce9ad5b51036b /setup/mainmenu.c | |
parent | 79ce35e89a61ad093d1f352a01c11c3307a8a1b1 (diff) | |
download | chocolate-doom-939bb4cf3e586643919d606620bf298f2351d735.tar.gz chocolate-doom-939bb4cf3e586643919d606620bf298f2351d735.tar.bz2 chocolate-doom-939bb4cf3e586643919d606620bf298f2351d735.zip |
Detect failures to initialise textscreen library and bomb out with an
error mess
age.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 727
Diffstat (limited to 'setup/mainmenu.c')
-rw-r--r-- | setup/mainmenu.c | 7 |
1 files changed, 6 insertions, 1 deletions
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(); |