예제 #1
0
 public override string ToString()
 {
     return("PRG ROM Size: " + KiloBytes.Format(ProgramRom.Count)
            + ", CHR ROM Size: " + KiloBytes.Format(CharacterRom.Length)
            + ", Mapper ID: " + MapperId
            + ", Mirror Mode: " + MirrorMode + " (" + (byte)MirrorMode + ")"
            + ", Battery: " + (BatteryPresent ? "Yes" : "No"));
 }
예제 #2
0
        private void OnFileProperties(object sender, EventArgs eventArgs)
        {
            if (cartridge == null)
            {
                return;
            }

            string cartridgeProperties
                = "Program ROM Size: " + KiloBytes.Format(cartridge.ProgramRom.Count) + "\r\n"
                  + "Character ROM Size: " + KiloBytes.Format(cartridge.CharacterRom.Length) + "\r\n"
                  + "Mapper ID: " + cartridge.MapperId + " (" + cartridge.Map.Name + ")\r\n"
                  + "Initial Mirroring Mode: " + cartridge.MirrorMode + "\r\n"
                  + "Battery Present: " + (cartridge.BatteryPresent ? "Yes" : "No")
                  + "\r\nCRC: " + Hex.Format(cartridge.Crc).Replace("$", "");

            MessageBox.Show(this, cartridgeProperties, this.cartridgeRomFilename + " Properties", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }