コード例 #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
ファイル: sweetConfig.cs プロジェクト: xeno123/sweetfxui-1
        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;
            }
        }