]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/languagelist.c
support comments in language list file
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / languagelist.c
index 5f6226f493fbee1ec5c5d1214cdf6aae16f62b1e..ebb947c73627d21158b174a30adb62f83bb71619 100644 (file)
@@ -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;