private void ListResources()

in csharp/NativeUtils/ResourceLoader.cs [931:957]


        private void ListResources()
        {
            _maxResourceLength = -1;
            _totalResourceLength = 0;
            _dlCount = 0;
            _resources = new List<Resource>();
            int orderIndex = 0;
            int pathLength = _resourcePrefix.LastIndexOf('.') + 1;
            foreach (string x in ResourceAssembly.GetManifestResourceNames())
                if (null == _resourceSuffix
                    ? x.Equals(_resourcePrefix)
                    : x.StartsWith(_resourcePrefix) && x.EndsWith(_resourceSuffix))
                    _resources.Add(new Resource(x, pathLength, orderIndex++, this));

            // No resources to deploy?
            if (_resources.Count < 1)
            {
                _resources = null;
                throw new ArgumentException(
                    $"No resources found for: {_resourcePathTemplate} -> {_resourcePrefix}*{_resourceSuffix}");
            }

            _resources.Sort();
            if (LogLevelLeast(DBG))
                foreach (var r in _resources)
                    Log($"{r.Order} : {r.Filename}");
        }