mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-01-31 18:51:39 +00:00
cfgapply: also handle non-set commands
This commit is contained in:
parent
d469151867
commit
f6925ebc0f
@ -11,8 +11,9 @@ while(<>)
|
|||||||
{
|
{
|
||||||
chomp;
|
chomp;
|
||||||
s/\r//g;
|
s/\r//g;
|
||||||
|
s/\/\/.*//;
|
||||||
|
|
||||||
if(/^\s*(?:set\s+|seta\s+)(\S+)/)
|
if(/^\s*(?:set\s+|seta\s+|)(\S+)/)
|
||||||
{
|
{
|
||||||
if(exists $cvar2line{$1})
|
if(exists $cvar2line{$1})
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user