diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-21 20:29:48 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-21 20:29:48 +0300 |
commit | 3c97e92747418c975439247c9fc8db492ea9b84d (patch) | |
tree | 08cb088919dfb26813eeada2e1966bd3bd581d47 /NesTiler | |
parent | d7f83872d4fd0701f9bb981f27e0050d3c65a887 (diff) |
CSV report fixes, tests, benchmarks
Diffstat (limited to 'NesTiler')
-rw-r--r-- | NesTiler/Program.cs | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/NesTiler/Program.cs b/NesTiler/Program.cs index 92a2f69..7d0afd4 100644 --- a/NesTiler/Program.cs +++ b/NesTiler/Program.cs @@ -54,13 +54,6 @@ namespace com.clusterrr.Famicom.NesTiler public static int Main(string[] args)
{
- Console.WriteLine($"NesTiler v{Assembly.GetExecutingAssembly().GetName().Version.Major}.{Assembly.GetExecutingAssembly().GetName().Version.Minor}");
- Console.WriteLine($" Commit {Properties.Resources.gitCommit} @ {REPO_PATH}");
-#if DEBUG
- Console.WriteLine($" Debug version, build time: {BUILD_TIME.ToLocalTime()}");
-#endif
- Console.WriteLine(" (c) Alexey 'Cluster' Avdyukhin / https://clusterrr.com / clusterrr@clusterrr.com");
- Console.WriteLine("");
try
{
if (args.Length == 0 || args.Contains("help") || args.Contains("--help"))
@@ -247,6 +240,14 @@ namespace com.clusterrr.Famicom.NesTiler }
}
+ console($"NesTiler v{Assembly.GetExecutingAssembly().GetName().Version.Major}.{Assembly.GetExecutingAssembly().GetName().Version.Minor}");
+ console($" Commit {Properties.Resources.gitCommit} @ {REPO_PATH}");
+#if DEBUG
+ console($" Debug version, build time: {BUILD_TIME.ToLocalTime()}");
+#endif
+ console(" (c) Alexey 'Cluster' Avdyukhin / https://clusterrr.com / clusterrr@clusterrr.com");
+ console("");
+
if (!imageFiles.Any())
throw new ArgumentException($"At least one input file required");
@@ -407,7 +408,7 @@ namespace com.clusterrr.Famicom.NesTiler if (palettes[i] != null)
{
console($"Palette #{i}: {ColorTranslator.ToHtml(bgColor.Value)}(BG) {string.Join(" ", palettes[i].Select(p => ColorTranslator.ToHtml(p)))}");
- outPalettesCsvLines?.Add($"{i},{string.Join(",", palettes[i].Select(p => ColorTranslator.ToHtml(p)))}");
+ outPalettesCsvLines?.Add($"{i},{ColorTranslator.ToHtml(bgColor.Value)},{string.Join(",",Enumerable.Range(1,3).Select(c => (palettes[i][c] != null ? ColorTranslator.ToHtml(palettes[i][c].Value) : "")))}");
}
}
}
|