コード例 #1
0
 public void UpdateKey()
 {
     if (!string.IsNullOrEmpty(LangId))
     {
         Key = Fox.GetStrCode32(LangId);
     }
 }
コード例 #2
0
 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);
        }