projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
998e124
)
show a clear error when no menu skin works
author
Rudolf Polzer <divVerent@xonotic.org>
Tue, 30 Aug 2011 07:47:52 +0000
(09:47 +0200)
committer
Rudolf Polzer <divVerent@xonotic.org>
Tue, 30 Aug 2011 07:47:52 +0000
(09:47 +0200)
qcsrc/menu/menu.qc
patch
|
blob
|
history
diff --git
a/qcsrc/menu/menu.qc
b/qcsrc/menu/menu.qc
index 3e45e416492ce6eab51eb631c85d4554f6adf746..edaea12312a7b61cc1dc7e4ac039f24a73cbc5ea 100644
(file)
--- 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)))
{