]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
support comments in language list file
authorRudolf Polzer <divverent@xonotic.org>
Wed, 22 Feb 2012 13:27:43 +0000 (14:27 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 22 Feb 2012 13:27:43 +0000 (14:27 +0100)
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;