mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Remove unneeded header methods for byte addressable images.
This commit is contained in:
@@ -271,13 +271,6 @@ public class AtariLynx : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber GetHeader(out byte[] header)
|
||||
{
|
||||
header = null;
|
||||
|
||||
return !_opened ? ErrorNumber.NotOpened : ErrorNumber.NoData;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber GetMappings(out LinearMemoryMap mappings)
|
||||
@@ -387,24 +380,6 @@ public class AtariLynx : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetHeader(byte[] header)
|
||||
{
|
||||
if(!_opened)
|
||||
{
|
||||
ErrorMessage = "Not image has been opened.";
|
||||
|
||||
return ErrorNumber.NotOpened;
|
||||
}
|
||||
|
||||
if(IsWriting)
|
||||
return ErrorNumber.NotSupported;
|
||||
|
||||
ErrorMessage = "Image is not opened for writing.";
|
||||
|
||||
return ErrorNumber.ReadOnly;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetMappings(LinearMemoryMap mappings)
|
||||
{
|
||||
|
||||
@@ -237,14 +237,6 @@ public class GameBoy : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber GetHeader(out byte[] header)
|
||||
{
|
||||
header = null;
|
||||
|
||||
return !_opened ? ErrorNumber.NotOpened : ErrorNumber.NoData;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber GetMappings(out LinearMemoryMap mappings)
|
||||
{
|
||||
@@ -601,24 +593,6 @@ public class GameBoy : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetHeader(byte[] header)
|
||||
{
|
||||
if(!_opened)
|
||||
{
|
||||
ErrorMessage = "Not image has been opened.";
|
||||
|
||||
return ErrorNumber.NotOpened;
|
||||
}
|
||||
|
||||
if(IsWriting)
|
||||
return ErrorNumber.NotSupported;
|
||||
|
||||
ErrorMessage = "Image is not opened for writing.";
|
||||
|
||||
return ErrorNumber.ReadOnly;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetMappings(LinearMemoryMap mappings)
|
||||
{
|
||||
|
||||
@@ -217,14 +217,6 @@ public class GameBoyAdvance : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber GetHeader(out byte[] header)
|
||||
{
|
||||
header = null;
|
||||
|
||||
return !_opened ? ErrorNumber.NotOpened : ErrorNumber.NoData;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber GetMappings(out LinearMemoryMap mappings)
|
||||
{
|
||||
@@ -333,24 +325,6 @@ public class GameBoyAdvance : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetHeader(byte[] header)
|
||||
{
|
||||
if(!_opened)
|
||||
{
|
||||
ErrorMessage = "Not image has been opened.";
|
||||
|
||||
return ErrorNumber.NotOpened;
|
||||
}
|
||||
|
||||
if(IsWriting)
|
||||
return ErrorNumber.NotSupported;
|
||||
|
||||
ErrorMessage = "Image is not opened for writing.";
|
||||
|
||||
return ErrorNumber.ReadOnly;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetMappings(LinearMemoryMap mappings)
|
||||
{
|
||||
|
||||
@@ -318,14 +318,6 @@ public class MasterSystem : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber GetHeader(out byte[] header)
|
||||
{
|
||||
header = null;
|
||||
|
||||
return !_opened ? ErrorNumber.NotOpened : ErrorNumber.NoData;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber GetMappings(out LinearMemoryMap mappings)
|
||||
{
|
||||
@@ -434,24 +426,6 @@ public class MasterSystem : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetHeader(byte[] header)
|
||||
{
|
||||
if(!_opened)
|
||||
{
|
||||
ErrorMessage = "Not image has been opened.";
|
||||
|
||||
return ErrorNumber.NotOpened;
|
||||
}
|
||||
|
||||
if(IsWriting)
|
||||
return ErrorNumber.NotSupported;
|
||||
|
||||
ErrorMessage = "Image is not opened for writing.";
|
||||
|
||||
return ErrorNumber.ReadOnly;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetMappings(LinearMemoryMap mappings)
|
||||
{
|
||||
|
||||
@@ -444,14 +444,6 @@ public class Nes : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber GetHeader(out byte[] header)
|
||||
{
|
||||
header = null;
|
||||
|
||||
return !_opened ? ErrorNumber.NotOpened : ErrorNumber.NoData;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber GetMappings(out LinearMemoryMap mappings)
|
||||
{
|
||||
@@ -653,24 +645,6 @@ public class Nes : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetHeader(byte[] header)
|
||||
{
|
||||
if(!_opened)
|
||||
{
|
||||
ErrorMessage = "Not image has been opened.";
|
||||
|
||||
return ErrorNumber.NotOpened;
|
||||
}
|
||||
|
||||
if(IsWriting)
|
||||
return ErrorNumber.NotSupported;
|
||||
|
||||
ErrorMessage = "Image is not opened for writing.";
|
||||
|
||||
return ErrorNumber.ReadOnly;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetMappings(LinearMemoryMap mappings)
|
||||
{
|
||||
|
||||
@@ -276,14 +276,6 @@ public class Nintendo64 : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber GetHeader(out byte[] header)
|
||||
{
|
||||
header = null;
|
||||
|
||||
return !_opened ? ErrorNumber.NotOpened : ErrorNumber.NoData;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
[SuppressMessage("ReSharper", "CommentTypo")]
|
||||
public ErrorNumber GetMappings(out LinearMemoryMap mappings)
|
||||
@@ -660,24 +652,6 @@ public class Nintendo64 : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetHeader(byte[] header)
|
||||
{
|
||||
if(!_opened)
|
||||
{
|
||||
ErrorMessage = "Not image has been opened.";
|
||||
|
||||
return ErrorNumber.NotOpened;
|
||||
}
|
||||
|
||||
if(IsWriting)
|
||||
return ErrorNumber.NotSupported;
|
||||
|
||||
ErrorMessage = "Image is not opened for writing.";
|
||||
|
||||
return ErrorNumber.ReadOnly;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetMappings(LinearMemoryMap mappings)
|
||||
{
|
||||
|
||||
@@ -511,14 +511,6 @@ public class SegaMegaDrive : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber GetHeader(out byte[] header)
|
||||
{
|
||||
header = null;
|
||||
|
||||
return !_opened ? ErrorNumber.NotOpened : ErrorNumber.NoData;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber GetMappings(out LinearMemoryMap mappings)
|
||||
{
|
||||
@@ -713,24 +705,6 @@ public class SegaMegaDrive : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetHeader(byte[] header)
|
||||
{
|
||||
if(!_opened)
|
||||
{
|
||||
ErrorMessage = "Not image has been opened.";
|
||||
|
||||
return ErrorNumber.NotOpened;
|
||||
}
|
||||
|
||||
if(IsWriting)
|
||||
return ErrorNumber.NotSupported;
|
||||
|
||||
ErrorMessage = "Image is not opened for writing.";
|
||||
|
||||
return ErrorNumber.ReadOnly;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetMappings(LinearMemoryMap mappings)
|
||||
{
|
||||
|
||||
@@ -320,14 +320,6 @@ public class SuperNintendo : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber GetHeader(out byte[] header)
|
||||
{
|
||||
header = null;
|
||||
|
||||
return !_opened ? ErrorNumber.NotOpened : ErrorNumber.NoData;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber GetMappings(out LinearMemoryMap mappings)
|
||||
{
|
||||
@@ -499,24 +491,6 @@ public class SuperNintendo : IByteAddressableImage
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetHeader(byte[] header)
|
||||
{
|
||||
if(!_opened)
|
||||
{
|
||||
ErrorMessage = "Not image has been opened.";
|
||||
|
||||
return ErrorNumber.NotOpened;
|
||||
}
|
||||
|
||||
if(IsWriting)
|
||||
return ErrorNumber.NotSupported;
|
||||
|
||||
ErrorMessage = "Image is not opened for writing.";
|
||||
|
||||
return ErrorNumber.ReadOnly;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ErrorNumber SetMappings(LinearMemoryMap mappings)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user