예제 #1
0
 public IMapper GetMapper(byte number, Ines ines, Memory <byte> sram)
 {
     return(number switch
     {
         0 => GetMapper0(ines, sram),
         _ => throw new MapperException("未知的Mapper号", number),
     });
예제 #2
0
파일: Cartridge.cs 프로젝트: ywxt/Ywxt.Cens
        public Cartridge(Ines ines, Memory <byte> sram)
        {
            var mapper = MapperFactory.Factory.GetMapper(ines.Header.MapperNumber(), ines, sram);

            Mapper = mapper;
            Ines   = ines;
            Sram   = sram;
        }