Enable nullability in some services
This commit is contained in:
parent
aa9402f3c8
commit
8d210df9e3
|
@ -20,7 +20,7 @@ namespace BizHawk.Client.Common
|
|||
_bb = null;
|
||||
}
|
||||
|
||||
public int[] GetVideoBuffer() => _bb.Pixels;
|
||||
public int[] GetVideoBuffer() => _bb.Pixels!;
|
||||
|
||||
public int VirtualWidth => _bb.Width;
|
||||
|
||||
|
|
|
@ -218,10 +218,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
public int[] VideoBuffer { get; set; }
|
||||
|
||||
public int[] GetVideoBuffer()
|
||||
{
|
||||
return VideoBuffer;
|
||||
}
|
||||
public int[] GetVideoBuffer() => VideoBuffer!;
|
||||
|
||||
public int VirtualWidth => BufferWidth;
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#nullable disable
|
||||
|
||||
namespace BizHawk.Emulation.Common
|
||||
namespace BizHawk.Emulation.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// This interface specifies that an interface or implementation is a emulator core service, such as <seealso cref="IDebuggable"/>,
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#nullable disable
|
||||
|
||||
namespace BizHawk.Emulation.Common
|
||||
namespace BizHawk.Emulation.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// An <seealso cref="IEmulatorService"/> that returns cart/mapper/board information about the Game hardware itself, if available
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#nullable disable
|
||||
|
||||
namespace BizHawk.Emulation.Common
|
||||
namespace BizHawk.Emulation.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// This service provides a means for the current core to generate a
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#nullable disable
|
||||
|
||||
namespace BizHawk.Emulation.Common
|
||||
namespace BizHawk.Emulation.Common
|
||||
{
|
||||
public interface ICycleTiming
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#nullable disable
|
||||
|
||||
namespace BizHawk.Emulation.Common
|
||||
namespace BizHawk.Emulation.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies an interface for returning the state of a LED drive light such as on Disk and CD Drives,
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#nullable disable
|
||||
|
||||
namespace BizHawk.Emulation.Common
|
||||
namespace BizHawk.Emulation.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// This service specifies the interaction of the client and the core in terms of the state of input polling
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#nullable disable
|
||||
|
||||
namespace BizHawk.Emulation.Common
|
||||
namespace BizHawk.Emulation.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// This service is use by link cable capable cores to manage the status of the link cable
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#nullable disable
|
||||
|
||||
namespace BizHawk.Emulation.Common
|
||||
namespace BizHawk.Emulation.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// This service provides the means for a core to specify region information to the client, such NTSC versus PAL
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#nullable disable
|
||||
|
||||
namespace BizHawk.Emulation.Common
|
||||
namespace BizHawk.Emulation.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides detailed information about the Rom such as hashes,
|
||||
|
@ -12,6 +10,6 @@ namespace BizHawk.Emulation.Common
|
|||
/// All necessary information about the Rom.
|
||||
/// Expected to be formatted for user consumption
|
||||
/// </summary>
|
||||
string RomDetails { get; }
|
||||
string? RomDetails { get; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#nullable disable
|
||||
|
||||
namespace BizHawk.Emulation.Common
|
||||
namespace BizHawk.Emulation.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides an interface to convey the effective X, Y coordinates that represent
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#nullable disable
|
||||
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace BizHawk.Emulation.Common
|
||||
{
|
||||
|
|
|
@ -200,7 +200,7 @@ namespace BizHawk.Emulation.Cores.Computers.AmstradCPC
|
|||
|
||||
public int VsyncDenominator => GateArray.Z80ClockSpeed;
|
||||
|
||||
public int[] GetVideoBuffer() => ProcessVideoBuffer();
|
||||
public int[] GetVideoBuffer() => ProcessVideoBuffer()!;
|
||||
|
||||
public void SetupScreenSize()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue