mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Use collection expressions.
This commit is contained in:
@@ -298,8 +298,8 @@ public class AtariLynx : IByteAddressableImage
|
||||
|
||||
mappings = new LinearMemoryMap
|
||||
{
|
||||
Devices = new[]
|
||||
{
|
||||
Devices =
|
||||
[
|
||||
new LinearMemoryDevice
|
||||
{
|
||||
Type = LinearMemoryType.ROM,
|
||||
@@ -309,7 +309,7 @@ public class AtariLynx : IByteAddressableImage
|
||||
Length = (ulong)_data.Length
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
return ErrorNumber.NoError;
|
||||
|
||||
@@ -422,8 +422,8 @@ public class GameBoy : IByteAddressableImage
|
||||
case 0xFC: // Pocket Camera
|
||||
mappings = new LinearMemoryMap
|
||||
{
|
||||
Devices = new[]
|
||||
{
|
||||
Devices =
|
||||
[
|
||||
new LinearMemoryDevice
|
||||
{
|
||||
Location = "U1",
|
||||
@@ -458,7 +458,7 @@ public class GameBoy : IByteAddressableImage
|
||||
Length = DecodeSaveRamSize(header.SramSize)
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
return ErrorNumber.NoError;
|
||||
|
||||
@@ -246,8 +246,8 @@ public class GameBoyAdvance : IByteAddressableImage
|
||||
|
||||
mappings = new LinearMemoryMap
|
||||
{
|
||||
Devices = new[]
|
||||
{
|
||||
Devices =
|
||||
[
|
||||
new LinearMemoryDevice
|
||||
{
|
||||
Type = LinearMemoryType.ROM,
|
||||
@@ -257,7 +257,7 @@ public class GameBoyAdvance : IByteAddressableImage
|
||||
Length = (ulong)_data.Length
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
return ErrorNumber.NoError;
|
||||
|
||||
@@ -349,8 +349,8 @@ public class MasterSystem : IByteAddressableImage
|
||||
|
||||
mappings = new LinearMemoryMap
|
||||
{
|
||||
Devices = new[]
|
||||
{
|
||||
Devices =
|
||||
[
|
||||
new LinearMemoryDevice
|
||||
{
|
||||
Type = LinearMemoryType.ROM,
|
||||
@@ -360,7 +360,7 @@ public class MasterSystem : IByteAddressableImage
|
||||
Length = (ulong)_romSize
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
return ErrorNumber.NoError;
|
||||
|
||||
@@ -462,8 +462,8 @@ public class Nes : IByteAddressableImage
|
||||
return ErrorNumber.NotOpened;
|
||||
}
|
||||
|
||||
List<LinearMemoryDevice> devices = new()
|
||||
{
|
||||
List<LinearMemoryDevice> devices =
|
||||
[
|
||||
new LinearMemoryDevice
|
||||
{
|
||||
Type = LinearMemoryType.ROM,
|
||||
@@ -472,7 +472,7 @@ public class Nes : IByteAddressableImage
|
||||
Length = (ulong)_prgLen
|
||||
}
|
||||
}
|
||||
};
|
||||
];
|
||||
|
||||
if(_chrLen > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user