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

github.com/ClusterM/NesTiler.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-24 13:08:26 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-24 13:08:26 +0300
commitc811f746dac32b9ee09d99ed56862e5b8b720cac (patch)
tree2ae17a75db56ad2255cda004419ae07b90b2bad1
parentd07d875e7fc77054195afd75413c25821bd0a47c (diff)
Refactoring
-rw-r--r--NesTiler/Program.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/NesTiler/Program.cs b/NesTiler/Program.cs
index 4254a8e..6eab470 100644
--- a/NesTiler/Program.cs
+++ b/NesTiler/Program.cs
@@ -94,13 +94,6 @@ namespace com.clusterrr.Famicom.NesTiler
var attributeTableOffsets = new Dictionary<int, int>();
bool quiet = false;
- // Data
- var images = new Dictionary<int, FastBitmap>();
- var paletteIndexes = new Dictionary<int, byte[,]>();
- var patternTables = new Dictionary<int, Dictionary<int, Tile>>();
- var nameTables = new Dictionary<int, List<int>>();
- int tileID = 0;
-
// Filenames
var outPreview = new Dictionary<int, string>();
var outPalette = new Dictionary<int, string>();
@@ -112,8 +105,15 @@ namespace com.clusterrr.Famicom.NesTiler
string outPalettesCsv = null;
var console = (string text) => { if (!quiet) Console.WriteLine(text); };
+ // Data
+ var images = new Dictionary<int, FastBitmap>();
+ var paletteIndexes = new Dictionary<int, byte[,]>();
+ var patternTables = new Dictionary<int, Dictionary<int, Tile>>();
+ var nameTables = new Dictionary<int, List<int>>();
+ int tileID = 0;
+
+ // Misc
var nesColorsCache = new Dictionary<Color, byte>();
-
var paramRegex = new Regex(@"^--?(?<param>[a-zA-Z-]+?)-?(?<index>[0-9]*)$");
for (int i = 0; i < args.Length; i++)