Esempio n. 1
0
        private Definition Load(DefinitionLoader loader)
        {
            var internalId = loader.Definitions.First(d =>
            {
                var romId = d.RomId;

                if (romId.InternalIdString == null)
                {
                    return(false);
                }

                var b             = _romStream.SeekAndReadElement(romId.InternalIdAddress, "", romId.InternalIdString.Length);
                var romInternalId = Encoding.UTF8.GetString(b);

                return(romInternalId == romId.InternalIdString);
            })?.RomId?.InternalIdString;

            return(loader.GetDefinitionByInternalId(internalId));
        }