From 20ced1cef9d0f97c5a3924dfd78ccf7ef7019f77 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Sun, 22 Jan 2023 00:08:23 +0400 Subject: Update README.md --- README.md | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index b9c4e04..0d39577 100644 --- a/README.md +++ b/README.md @@ -108,17 +108,17 @@ public interface IMapper /// /// Number of the mapper to spore in the iNES header (-1 if none) /// - int Number { get; } + int Number { get => -1; } /// /// Number of submapper (0 if none) /// - byte Submapper { get; } + byte Submapper { get => 0; } /// /// Name of the mapper to store in UNIF container (null if none) /// - string UnifName { get; } + string UnifName { get => null; } /// /// Default PRG size to dump (in bytes) @@ -128,7 +128,7 @@ public interface IMapper /// /// Default CHR size to dump (in bytes) /// - int DefaultChrSize { get; } + int DefaultChrSize { get => 0; } /// /// This method will be called to dump PRG @@ -144,43 +144,42 @@ public interface IMapper /// FamicomDumperConnection object to access cartridge /// This list must be filled with dumped CHR data /// Size of CHR to dump requested by user (in bytes) - void DumpChr(IFamicomDumperConnection dumper, List data, int size = 0); + void DumpChr(IFamicomDumperConnection dumper, List data, int size = 0) + => throw new NotSupportedException("This mapper doesn't have a CHR ROM"); /// /// This method will be called to enable PRG RAM /// /// - void EnablePrgRam(IFamicomDumperConnection dumper); + void EnablePrgRam(IFamicomDumperConnection dumper) + => throw new NotImplementedException("PRG RAM is not supported by this mapper"); /// /// This method must return mirroring type, it can call dumper.GetMirroring() if it's fixed /// /// FamicomDumperConnection object to access cartridge /// Mirroring type - MirroringType GetMirroring(IFamicomDumperConnection dumper); - - /* Optional properties */ - /* + MirroringType GetMirroring(IFamicomDumperConnection dumper) => dumper.GetMirroring(); + /// /// Default PRG RAM size, can be used with NES 2.0 /// - int DefaultPrgRamSize { get; } + public int DefaultPrgRamSize { get => -1; } /// /// Default CHR RAM size, can be used with NES 2.0 /// - int DefaultChrRamSize { get; } + public int DefaultChrRamSize { get => -1; } /// /// Default PRG NVRAM size, can be used with NES 2.0 /// - int DefaultPrgNvramSize { get; } + public int DefaultPrgNvramSize { get => -1; } /// /// Default CHR NVRAM size, can be used with NES 2.0 /// - int DefaultChrNvramSize { get; } - */ + public int DefaultChrNvramSize { get => -1; } } ``` -- cgit v1.2.3