Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/famicom-dumper-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2023-01-21 23:08:23 +0300
committerGitHub <noreply@github.com>2023-01-21 23:08:23 +0300
commit20ced1cef9d0f97c5a3924dfd78ccf7ef7019f77 (patch)
tree6f137ed5f8cc356276c7999d70ae39e5c6240c4f /README.md
parent088f03ec752e62bc0cf305a53216240cbc061d04 (diff)
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md29
1 files 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
/// <summary>
/// Number of the mapper to spore in the iNES header (-1 if none)
/// </summary>
- int Number { get; }
+ int Number { get => -1; }
/// <summary>
/// Number of submapper (0 if none)
/// </summary>
- byte Submapper { get; }
+ byte Submapper { get => 0; }
/// <summary>
/// Name of the mapper to store in UNIF container (null if none)
/// </summary>
- string UnifName { get; }
+ string UnifName { get => null; }
/// <summary>
/// Default PRG size to dump (in bytes)
@@ -128,7 +128,7 @@ public interface IMapper
/// <summary>
/// Default CHR size to dump (in bytes)
/// </summary>
- int DefaultChrSize { get; }
+ int DefaultChrSize { get => 0; }
/// <summary>
/// This method will be called to dump PRG
@@ -144,43 +144,42 @@ public interface IMapper
/// <param name="dumper">FamicomDumperConnection object to access cartridge</param>
/// <param name="data">This list must be filled with dumped CHR data</param>
/// <param name="size">Size of CHR to dump requested by user (in bytes)</param>
- void DumpChr(IFamicomDumperConnection dumper, List<byte> data, int size = 0);
+ void DumpChr(IFamicomDumperConnection dumper, List<byte> data, int size = 0)
+ => throw new NotSupportedException("This mapper doesn't have a CHR ROM");
/// <summary>
/// This method will be called to enable PRG RAM
/// </summary>
/// <param name="dumper"></param>
- void EnablePrgRam(IFamicomDumperConnection dumper);
+ void EnablePrgRam(IFamicomDumperConnection dumper)
+ => throw new NotImplementedException("PRG RAM is not supported by this mapper");
/// <summary>
/// This method must return mirroring type, it can call dumper.GetMirroring() if it's fixed
/// </summary>
/// <param name="dumper">FamicomDumperConnection object to access cartridge</param>
/// <returns>Mirroring type</returns>
- MirroringType GetMirroring(IFamicomDumperConnection dumper);
-
- /* Optional properties */
- /*
+ MirroringType GetMirroring(IFamicomDumperConnection dumper) => dumper.GetMirroring();
+
/// <summary>
/// Default PRG RAM size, can be used with NES 2.0
/// </summary>
- int DefaultPrgRamSize { get; }
+ public int DefaultPrgRamSize { get => -1; }
/// <summary>
/// Default CHR RAM size, can be used with NES 2.0
/// </summary>
- int DefaultChrRamSize { get; }
+ public int DefaultChrRamSize { get => -1; }
/// <summary>
/// Default PRG NVRAM size, can be used with NES 2.0
/// </summary>
- int DefaultPrgNvramSize { get; }
+ public int DefaultPrgNvramSize { get => -1; }
/// <summary>
/// Default CHR NVRAM size, can be used with NES 2.0
/// </summary>
- int DefaultChrNvramSize { get; }
- */
+ public int DefaultChrNvramSize { get => -1; }
}
```