From: Rudolf Polzer Date: Wed, 22 Feb 2012 13:27:43 +0000 (+0100) Subject: support comments in language list file X-Git-Tag: xonotic-v0.6.0~53^2~11 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=279a9ad89a3d5c909969cc4597d56200355942b5;p=xonotic%2Fxonotic-data.pk3dir.git support comments in language list file --- diff --git a/qcsrc/menu/xonotic/languagelist.c b/qcsrc/menu/xonotic/languagelist.c index 5f6226f49..ebb947c73 100644 --- a/qcsrc/menu/xonotic/languagelist.c +++ b/qcsrc/menu/xonotic/languagelist.c @@ -155,6 +155,8 @@ void XonoticLanguageList_getLanguages(entity me) fh = fopen("languages.txt", FILE_READ); while((s = fgets(fh))) { + if(substring(s, 0, 2) == "//") + continue; // comment n = tokenize_console(s); if(n < 3) continue;