From 2f0239f4a2e93e447723c0fa5ce0c06a7059e3aa Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Thu, 27 Sep 2018 21:16:37 +0300 Subject: [PATCH] Acceleration disabled for now, typo fix. --- CoolboyWriter.cs | 4 ++-- CoolgirlWriter.cs | 4 ++-- Program.cs | 2 ++ famicom-dumper.csproj.user | 19 +++++++++++++++++++ 4 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 famicom-dumper.csproj.user diff --git a/CoolboyWriter.cs b/CoolboyWriter.cs index 2fa6c48..35f8207 100644 --- a/CoolboyWriter.cs +++ b/CoolboyWriter.cs @@ -101,7 +101,7 @@ public static void WriteWithGPIO(FamicomDumperConnection dumper, string fileName var timePassed = DateTime.Now - writeStartTime; Console.Write("Writing {0}/{1} ({2}%, {3:D2}:{4:D2}:{5:D2}/{6:D2}:{7:D2}:{8:D2})... ", bank / 2 + 1, prgBanks / 2, (int)(100 * bank / prgBanks), timePassed.Hours, timePassed.Minutes, timePassed.Seconds, timeTotal.Hours, timeTotal.Minutes, timeTotal.Seconds); - dumper.WritePrgFlash(0x0000, data, FamicomDumperConnection.FlashAccessType.CoolboyGPIO, true); + dumper.WritePrgFlash(0x0000, data, FamicomDumperConnection.FlashAccessType.CoolboyGPIO, false); Console.WriteLine("OK"); } } @@ -195,7 +195,7 @@ public static void Write(FamicomDumperConnection dumper, string fileName, IEnume var timePassed = DateTime.Now - writeStartTime; Console.Write("Writing {0}/{1} ({2}%, {3:D2}:{4:D2}:{5:D2}/{6:D2}:{7:D2}:{8:D2})... ", bank + 1, prgBanks, (int)(100 * bank / prgBanks), timePassed.Hours, timePassed.Minutes, timePassed.Seconds, timeTotal.Hours, timeTotal.Minutes, timeTotal.Seconds); - dumper.WritePrgFlash(0x0000, data, FamicomDumperConnection.FlashAccessType.Direct, true); + dumper.WritePrgFlash(0x0000, data, FamicomDumperConnection.FlashAccessType.Direct, false); Console.WriteLine("OK"); if (writePBBs && ((bank % 8 == 7) || (bank == prgBanks - 1))) PPBWrite(dumper, coolboyReg, (uint)bank / 8); diff --git a/CoolgirlWriter.cs b/CoolgirlWriter.cs index ea96e9e..72b5060 100644 --- a/CoolgirlWriter.cs +++ b/CoolgirlWriter.cs @@ -81,7 +81,7 @@ public static void Write(FamicomDumperConnection dumper, string fileName, IEnume var timePassed = DateTime.Now - writeStartTime; Console.Write("Writing {0}/{1} ({2}%, {3:D2}:{4:D2}:{5:D2}/{6:D2}:{7:D2}:{8:D2})... ", bank + 1, prgBanks, (int)(100 * bank / prgBanks), timePassed.Hours, timePassed.Minutes, timePassed.Seconds, timeTotal.Hours, timeTotal.Minutes, timeTotal.Seconds); - dumper.WritePrgFlash(0x0000, data, FamicomDumperConnection.FlashAccessType.Direct, true); + dumper.WritePrgFlash(0x0000, data, FamicomDumperConnection.FlashAccessType.Direct, false); Console.WriteLine("OK"); if (writePBBs && ((bank % 4 == 3) || (bank == prgBanks - 1))) PPBWrite(dumper, (uint)bank / 4); @@ -310,7 +310,7 @@ public static void FindBads(FamicomDumperConnection dumper, bool silent) var data = new byte[0x8000]; new Random().NextBytes(data); Console.Write("Writing sector #0 for test... "); - dumper.WritePrgFlash(0x0000, data, FamicomDumperConnection.FlashAccessType.Direct, true); + dumper.WritePrgFlash(0x0000, data, FamicomDumperConnection.FlashAccessType.Direct, false); Console.WriteLine("OK"); Console.Write("Reading sector #0 for test... "); var datar = dumper.ReadCpu(0x8000, 0x8000); diff --git a/Program.cs b/Program.cs index 2cc4093..da05c4d 100644 --- a/Program.cs +++ b/Program.cs @@ -217,6 +217,7 @@ static int Main(string[] args) case "test-sram": TestPrgRam(dumper, mapper); break; + case "test-prg-coolgirl": case "test-prg-ram-coolgirl": case "test-sram-coolgirl": CoolgirlWriter.TestPrgRam(dumper); @@ -228,6 +229,7 @@ static int Main(string[] args) TestChrRam(dumper); break; case "test-chr-coolgirl": + case "test-chr-ram-coolgirl": CoolgirlWriter.TestChrRam(dumper); break; case "test-coolgirl": diff --git a/famicom-dumper.csproj.user b/famicom-dumper.csproj.user new file mode 100644 index 0000000..847a229 --- /dev/null +++ b/famicom-dumper.csproj.user @@ -0,0 +1,19 @@ + + + + info-coolboy + + + info-coolboy + + + publish\ + + + + + + en-US + false + + \ No newline at end of file