Ejemplo n.º 1
0
        public static SpecificResource findStblFor(ulong guid, byte lang)
        {
            if (guid == FNV64Blank)
            {
                return(null);
            }
            STBLFinder finder = new STBLFinder(guid);

            return(STBLs.ContainsKey(lang) ? STBLs[lang].Find(finder.HasGUID) : null);
        }
Ejemplo n.º 2
0
        public static SpecificResource findStblFor(ulong guid, byte lang)
        {
            // Unfortunately this shortcut causes problems if EA decide to include a blank string...
            //if (guid == FNV64Blank) return null;

            return(STBLs.ContainsKey(lang) ? STBLs[lang].Find(sr =>
            {
                var stbl = sr.Resource as IDictionary <ulong, string>;
                if (stbl == null)
                {
                    return false;
                }
                return stbl.ContainsKey(guid);
            }) : null);
        }