Move declarations closer to usage.

This commit is contained in:
2023-10-05 02:37:04 +01:00
parent 214d210979
commit 13a2bfdaf4
6 changed files with 7 additions and 8 deletions

View File

@@ -712,12 +712,11 @@ public class Nes : IByteAddressableImage
var foundMapper = false;
var foundSubMapper = false;
Regex regex;
Match match;
// Sanitize
foreach(LinearMemoryDevice map in mappings.Devices)
{
Regex regex;
Match match;
switch(map.Type)
{
case LinearMemoryType.ROM when !foundRom: