From c811f746dac32b9ee09d99ed56862e5b8b720cac Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Mon, 24 Oct 2022 14:08:26 +0400 Subject: Refactoring --- NesTiler/Program.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'NesTiler') 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(); bool quiet = false; - // Data - var images = new Dictionary(); - var paletteIndexes = new Dictionary(); - var patternTables = new Dictionary>(); - var nameTables = new Dictionary>(); - int tileID = 0; - // Filenames var outPreview = new Dictionary(); var outPalette = new Dictionary(); @@ -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(); + var paletteIndexes = new Dictionary(); + var patternTables = new Dictionary>(); + var nameTables = new Dictionary>(); + int tileID = 0; + + // Misc var nesColorsCache = new Dictionary(); - var paramRegex = new Regex(@"^--?(?[a-zA-Z-]+?)-?(?[0-9]*)$"); for (int i = 0; i < args.Length; i++) -- cgit v1.2.3