]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
show a clear error when no menu skin works
authorRudolf Polzer <divVerent@xonotic.org>
Tue, 30 Aug 2011 07:47:52 +0000 (09:47 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 30 Aug 2011 07:47:52 +0000 (09:47 +0200)
qcsrc/menu/menu.qc

index 3e45e416492ce6eab51eb631c85d4554f6adf746..edaea12312a7b61cc1dc7e4ac039f24a73cbc5ea 100644 (file)
@@ -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)))
        {