コード例 #1
0
        // Esta funcion permite el analisis de ROMS de SNES con extensiones SMC y SFC
        public RomDump(byte[] rom)
        {
            this.Data = rom;
            // Comprobamos si existe el header smc
            if (this.Data.Length % 1024 == 512)
                SmcHeader = true;
            else if (this.Data.Length % 1024 == 0)
                SmcHeader = false;
            else
                throw new Exception("Archivo de rom invalida.");
            this.HeaderLocation = 0x81C0;

            if (HeaderIsAt(0x07FC0)) // La Rom es LoROM
            {
                this.BankType = BankTypeEnum.Lo;
            }
            else if (HeaderIsAt(0x0FFC0))
            {
                this.BankType = BankTypeEnum.Hi;
            }

            // Leemos el Header
            ReadHeader();
        }
コード例 #2
0
        public static string GetBankCode(BankTypeEnum banktype)
        {
            switch (banktype.ToString())
            {
                case "所有银行":
                    return "";

                case "易宝会员支付":
                    return "1000000-NET";

                case "中国农业银行":
                    return "ABC-NET";

                case "北京银行":
                    return "BCCB-NET";

                case "交通银行":
                    return "BOCO-NET";

                case "建设银行":
                    return "CCB-NET";

                case "兴业银行":
                    return "CIB-NET";

                case "招商银行":
                    return "CMBCHINA-NET";

                case "中国民生银行总行":
                    return "CMBC-NET";

                case "光大银行":
                    return "CEB-NET";

                case "中国银行":
                    return "BOC-NET";

                case "中信银行":
                    return "ECITIC-NET";

                case "中国工商银行":
                    return "ICBC-NET";

                case "上海浦东发展银行":
                    return "SPDB-NET";

                case "深圳发展银行":
                    return "SDB-NET";

                case "广东发展银行":
                    return "GDB-NET";

                case "中国邮政":
                    return "POST-NET";

                case "北京农村商业银行":
                    return "BJRCB-NET";

                case "华夏银行":
                    return "HXB-NET";

                case "广州市农信社":
                    return "GNXS-NET";

                case "广州市商业银行":
                    return "GZCB-NET";

                case "顺德农信社":
                    return "SDE-NET";

                case "海农村商业银行":
                    return "SHRCB-NET";

                case "骏网一卡通":
                    return "JUNNET-NET";

                case "联华OK卡":
                    return "LIANHUAOKCARD-NET";

                case "电信聚信卡":
                    return "SHTEL-NET";

                case "盛大卡":
                    return "SNDACARD-NET";

                case "神州行标准版网关":
                    return "SZX-NET";

                case "征途卡":
                    return "ZHENGTU-NET";
            }
            return "";
        }