Esempio n. 1
0
        public string[] GetSubtitlesInternal(STUSubtitleContainer subtileContainer)
        {
            List <string> @return = new List <string>();

            GetSubtitle(@return, subtileContainer.Subtitle1);
            GetSubtitle(@return, subtileContainer.Subtitle2);
            GetSubtitle(@return, subtileContainer.Subtitle3);
            GetSubtitle(@return, subtileContainer.Subtitle4);
            return(@return.ToArray());
        }
Esempio n. 2
0
        public Dictionary <string, SubtitleInfo> GetSubtitles()
        {
            Dictionary <string, SubtitleInfo> @return = new Dictionary <string, SubtitleInfo>();

            foreach (ulong key in TrackedFiles[0x71])
            {
                STUSubtitleContainer subtitleContainer = GetInstance <STUSubtitleContainer>(key);
                if (subtitleContainer == null)
                {
                    continue;
                }

                @return[GetFileName(key)] = new SubtitleInfo(key, GetSubtitlesInternal(subtitleContainer));
            }

            return(@return);
        }