示例#1
0
        public void parseConfig(String[] lines)
        {
            FXSetting parent = null;

            foreach (string l in lines)
            {
                Match m = settingMatcher.Match(l);
                if (m.Success)
                {
                    FXSettings.Add(new FXSetting(m, parent, this));
                }
                else
                {
                    Match m2 = settingGroupMatcher.Match(l);
                    if (m2.Success)
                    {
                        String groupname = m2.Groups[1].Value;
                        foreach (FXSetting fxp in FXSettings)
                        {
                            if (fxp.comment.StartsWith(groupname))
                            {
                                parent = fxp;
                                break;
                            }
                        }
                    }
                    else
                    {
                        logger.debug("Could not decode : " + l);
                    }
                }
            }

            // USE_SPLITSCREEN was added in v1.3
            if (byName.ContainsKey("USE_SPLITSCREEN"))
            {
                configVersion = configVersions.v13;
            }
        }
示例#2
0
        public void parseConfig(String[] lines)
        {
            FXSetting parent = null;
            foreach (string l in lines)
            {
                Match m = settingMatcher.Match(l);
                if (m.Success)
                {
                    FXSettings.Add(new FXSetting(m, parent, this));
                }
                else
                {
                    Match m2 = settingGroupMatcher.Match(l);
                    if (m2.Success)
                    {
                        String groupname = m2.Groups[1].Value;
                        foreach (FXSetting fxp in FXSettings)
                        {
                            if (fxp.comment.StartsWith(groupname))
                            {
                                parent = fxp;
                                break;
                            }
                        }
                    }
                    else
                    {
                        logger.debug("Could not decode : " + l);
                    }
                }
            }

            // USE_SPLITSCREEN was added in v1.3
            if (byName.ContainsKey("USE_SPLITSCREEN"))
            {
                configVersion = configVersions.v13;
            }
        }