Example #1
0
        protected override void WriteInner(StringBuilder builder)
        {
            var labelSet    = new HashSet <string>();
            var assetGroups = EditorFileUtil.LoadAssetGroups(assetDirPath);

            foreach (var group in assetGroups)
            {
                // Ignore Built-in resources
                if (group.ReadOnly)
                {
                    continue;
                }

                foreach (var entry in group.entries)
                {
                    foreach (string label in entry.labels)
                    {
                        labelSet.Add(label);
                    }
                }
            }
            AppendSymbols(builder, labelSet);
        }
Example #2
0
        protected override void WriteInner(StringBuilder builder)
        {
            var addresseSet = new HashSet <string>();
            var assetGroups = EditorFileUtil.LoadAssetGroups(assetDirPath);

            foreach (var group in assetGroups)
            {
                // Ignore Built-in resources
                if (group.ReadOnly)
                {
                    continue;
                }

                foreach (var entry in group.entries)
                {
                    bool isNew = addresseSet.Add(entry.address);
                    if (!isNew)
                    {
                        AltoLog.FW_Warn($"Duplicated address found : { entry.address }");
                    }
                }
            }
            AppendSymbols(builder, addresseSet);
        }