From: Rudolf Polzer Date: Tue, 30 Aug 2011 07:47:52 +0000 (+0200) Subject: show a clear error when no menu skin works X-Git-Tag: xonotic-v0.5.0~27 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0c6acf13ae3095970f6a032b159039b518b1e272;p=xonotic%2Fxonotic-data.pk3dir.git show a clear error when no menu skin works --- diff --git a/qcsrc/menu/menu.qc b/qcsrc/menu/menu.qc index 3e45e4164..edaea1231 100644 --- a/qcsrc/menu/menu.qc +++ b/qcsrc/menu/menu.qc @@ -129,6 +129,10 @@ void() m_init_delayed = draw_currentSkin = "gfx/menu/default"; fh = fopen(language_filename(strcat(draw_currentSkin, "/skinvalues.txt")), FILE_READ); } + if(fh < 0) + { + error("cannot load any menu skin\n"); + } draw_currentSkin = strzone(draw_currentSkin); while((s = fgets(fh))) {