public void UpdateKey() { if (!string.IsNullOrEmpty(LangId)) { Key = Fox.GetStrCode32(LangId); } }
public void UpdateSubtitleIdHash() { if (!string.IsNullOrEmpty(SubtitleId)) { SubtitleIdHash = Fox.GetStrCode32(SubtitleId); } }
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); }