Skip to content

Commit

Permalink
Acceleration disabled for now, typo fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ClusterM committed Sep 27, 2018
1 parent 256c329 commit 2f0239f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CoolboyWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions CoolgirlWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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":
Expand Down
19 changes: 19 additions & 0 deletions famicom-dumper.csproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<StartArguments>info-coolboy</StartArguments>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<StartArguments>info-coolboy</StartArguments>
</PropertyGroup>
<PropertyGroup>
<PublishUrlHistory>publish\</PublishUrlHistory>
<InstallUrlHistory />
<SupportUrlHistory />
<UpdateUrlHistory />
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>en-US</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
</Project>

0 comments on commit 2f0239f

Please sign in to comment.