Пример #1
0
 public void UpdateKey()
 {
     if (!string.IsNullOrEmpty(LangId))
     {
         Key = Fox.GetStrCode32(LangId);
     }
 }
 public void UpdateSubtitleIdHash()
 {
     if (!string.IsNullOrEmpty(SubtitleId))
     {
         SubtitleIdHash = Fox.GetStrCode32(SubtitleId);
     }
 }
Пример #3
0
        private static Dictionary <uint, string> GetDictionary(string path)
        {
            var dictionary = new Dictionary <uint, string>();

            try
            {
                var values = File.ReadAllLines(path);
                foreach (var value in values)
                {
                    var code = Fox.GetStrCode32(value);
                    DebugCheckCollision(dictionary, code, value);
                    dictionary[code] = value;
                }
            }
            catch (Exception e)
            {
                Console.WriteLine("Unable to read the dictionary " + path + " " + e);
            }

            return(dictionary);
        }