mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use UTF-8 string literals whenever possible.
This commit is contained in:
@@ -45,40 +45,13 @@ namespace Aaru.Core.Devices.Dumping;
|
||||
|
||||
public partial class Dump
|
||||
{
|
||||
static readonly byte[] _sfcExtension =
|
||||
{
|
||||
0x53, 0x46, 0x43
|
||||
};
|
||||
|
||||
static readonly byte[] _genesisExtension =
|
||||
{
|
||||
0x42, 0x49, 0x4E
|
||||
};
|
||||
|
||||
static readonly byte[] _smsExtension =
|
||||
{
|
||||
0x53, 0x4D, 0x53
|
||||
};
|
||||
|
||||
static readonly byte[] _z64Extension =
|
||||
{
|
||||
0x5A, 0x36, 0x34
|
||||
};
|
||||
|
||||
static readonly byte[] _gbExtension =
|
||||
{
|
||||
0x47, 0x42, 0x20
|
||||
};
|
||||
|
||||
static readonly byte[] _gbcExtension =
|
||||
{
|
||||
0x47, 0x42, 0x43
|
||||
};
|
||||
|
||||
static readonly byte[] _gbaExtension =
|
||||
{
|
||||
0x47, 0x42, 0x41
|
||||
};
|
||||
static readonly byte[] _sfcExtension = "SFC"u8.ToArray();
|
||||
static readonly byte[] _genesisExtension = "BIN"u8.ToArray();
|
||||
static readonly byte[] _smsExtension = "SMS"u8.ToArray();
|
||||
static readonly byte[] _z64Extension = "Z64"u8.ToArray();
|
||||
static readonly byte[] _gbExtension = "GB "u8.ToArray();
|
||||
static readonly byte[] _gbcExtension = "GBC"u8.ToArray();
|
||||
static readonly byte[] _gbaExtension = "GBA"u8.ToArray();
|
||||
|
||||
/// <summary>Dumps a game cartridge using a Retrode adapter</summary>
|
||||
void Retrode()
|
||||
|
||||
@@ -42,14 +42,8 @@ namespace Aaru.Core.Devices.Dumping;
|
||||
|
||||
public partial class Dump
|
||||
{
|
||||
static readonly byte[] _fatSignature =
|
||||
{
|
||||
0x46, 0x41, 0x54, 0x31, 0x36, 0x20, 0x20, 0x20
|
||||
};
|
||||
static readonly byte[] _isoExtension =
|
||||
{
|
||||
0x49, 0x53, 0x4F
|
||||
};
|
||||
static readonly byte[] _fatSignature = "FAT16 "u8.ToArray();
|
||||
static readonly byte[] _isoExtension = "ISO"u8.ToArray();
|
||||
|
||||
/// <summary>Dumps a CFW PlayStation Portable UMD</summary>
|
||||
void PlayStationPortable()
|
||||
|
||||
Reference in New Issue
Block a user