Skip to content

Commit

Permalink
Size in KB
Browse files Browse the repository at this point in the history
  • Loading branch information
ClusterM committed Aug 30, 2018
1 parent b2e5c48 commit 84ef171
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tools_sources/CoolboyCombiner/Program.cs
Expand Up @@ -373,12 +373,12 @@ static int Main(string[] args)

namesIncluded.Add("");
namesIncluded.Add("Total games: " + (games.Count - hiddenCount));
namesIncluded.Add("Final ROM size: " + Math.Round(usedSpace / 1024.0 / 1024.0, 3) + "MB");
namesIncluded.Add("Final ROM size: " + (usedSpace / 1024) + "KB");
namesIncluded.Add("Maximum CHR size: " + maxChrSize / 1024 + "KB");
namesIncluded.Add("Battery-backed games: " + saveId);

Console.WriteLine("Total games: " + (games.Count - hiddenCount));
Console.WriteLine("Final ROM size: " + Math.Round(usedSpace / 1024.0 / 1024.0, 3) + "MB");
Console.WriteLine("Final ROM size: " + (usedSpace / 1024) + "KB");
Console.WriteLine("Maximum CHR size: " + maxChrSize / 1024 + "KB");
Console.WriteLine("Battery-backed games: " + saveId);

Expand Down Expand Up @@ -638,7 +638,8 @@ static int Main(string[] args)
if (useFlashWriting)
{
asmResult.AppendLine("USE_FLASH_WRITING .equ 1");
} else
}
else
{
asmResult.AppendLine("USE_FLASH_WRITING .equ 0");
}
Expand Down Expand Up @@ -769,7 +770,7 @@ static int Main(string[] args)
if (!string.IsNullOrEmpty(optionUnif))
{
var u = new UnifFile();
switch(coolboyVersion)
switch (coolboyVersion)
{
default:
u.Mapper = "COOLBOY";
Expand All @@ -778,7 +779,7 @@ static int Main(string[] args)
u.Mapper = "MINDKIDS";
break;
}

u.Fields["MIRR"] = new byte[] { 5 };
u.Fields["PRG0"] = result;
u.Fields["BATR"] = new byte[] { 1 };
Expand Down Expand Up @@ -1018,7 +1019,7 @@ public override string ToString()
if (MenuName != null)
{
if (MenuName.StartsWith("+"))
name= MenuName.Substring(1).Trim();
name = MenuName.Substring(1).Trim();
else
name = MenuName.Trim();
}
Expand Down

0 comments on commit 84ef171

Please sign in to comment.