From 279a9ad89a3d5c909969cc4597d56200355942b5 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 22 Feb 2012 14:27:43 +0100 Subject: [PATCH] support comments in language list file --- qcsrc/menu/xonotic/languagelist.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.2