Invert nullability in Emulation.Common, enabling it some trivial files

This commit is contained in:
YoshiRulz 2021-07-22 14:22:39 +10:00
parent f1da6e6cd3
commit b4738411a2
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
76 changed files with 187 additions and 86 deletions

View File

@ -1,5 +1,3 @@
#nullable enable
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {
public interface AxisConstraint public interface AxisConstraint

View File

@ -1,5 +1,3 @@
#nullable enable
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -1,5 +1,3 @@
#nullable enable
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {
/// <summary>represents the direction of <c>(+, +)</c></summary> /// <summary>represents the direction of <c>(+, +)</c></summary>

View File

@ -1,5 +1,3 @@
#nullable enable
using System; using System;
using BizHawk.Common; using BizHawk.Common;

View File

@ -1,5 +1,3 @@
#nullable enable
using System; using System;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common

View File

@ -1,5 +1,3 @@
#nullable enable
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {
public sealed class NoOpAxisConstraint : AxisConstraint public sealed class NoOpAxisConstraint : AxisConstraint

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;

View File

@ -1,4 +1,6 @@
using System.Collections.Generic; #nullable disable
using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Linq; using System.Linq;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using BizHawk.Common; using BizHawk.Common;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using BizHawk.Common; using BizHawk.Common;

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Linq; using System.Linq;

View File

@ -1,3 +1,5 @@
#nullable disable
using System; using System;
using System.IO; using System.IO;
using BizHawk.Common; using BizHawk.Common;

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common

View File

@ -1,4 +1,6 @@
using System.Threading; #nullable disable
using System.Threading;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
/// <summary> /// <summary>
/// A default IVideoProvider that simply returns /// A default IVideoProvider that simply returns

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
namespace BizHawk.Emulation.Common.Base_Implementations namespace BizHawk.Emulation.Common.Base_Implementations
{ {

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.IO; using System.IO;
using BizHawk.Common; using BizHawk.Common;

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
/// <summary> /// <summary>
/// A generic implementation of ITraceable that can be used by any core /// A generic implementation of ITraceable that can be used by any core

View File

@ -5,7 +5,6 @@
<Import Project="../MainSlnCommon.props" /> <Import Project="../MainSlnCommon.props" />
<PropertyGroup> <PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>disable</Nullable>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common

View File

@ -1,6 +1,4 @@
#nullable enable using System;
using System;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {

View File

@ -1,4 +1,6 @@
using System.Linq; #nullable disable
using System.Linq;
using System.Text; using System.Text;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;

View File

@ -1,3 +1,5 @@
#nullable disable
using System.Collections.Generic; using System.Collections.Generic;
// ReSharper disable IdentifierTypo // ReSharper disable IdentifierTypo

View File

@ -1,5 +1,3 @@
#nullable enable
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {
public readonly struct FirmwareFile public readonly struct FirmwareFile

View File

@ -1,5 +1,3 @@
#nullable enable
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {
public readonly struct FirmwareID public readonly struct FirmwareID

View File

@ -1,5 +1,3 @@
#nullable enable
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {
public readonly struct FirmwareOption public readonly struct FirmwareOption

View File

@ -1,5 +1,3 @@
#nullable enable
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {
public readonly struct FirmwareRecord public readonly struct FirmwareRecord

View File

@ -1,4 +1,6 @@
using System.Collections.Generic; #nullable disable
using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Linq; using System.Linq;
using System.Globalization; using System.Globalization;

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;

View File

@ -1,4 +1,6 @@
using System.Collections.Generic; #nullable disable
using System.Collections.Generic;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
/// <summary> /// <summary>
/// Defines the means by which firmware, bios and other necessary files are provided to a core that needs them /// Defines the means by which firmware, bios and other necessary files are provided to a core that needs them

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
/// <summary> /// <summary>
/// This interface specifies that an interface or implementation is a emulator core service, such as <seealso cref="IDebuggable"/>, /// This interface specifies that an interface or implementation is a emulator core service, such as <seealso cref="IDebuggable"/>,

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
/// <summary> /// <summary>
/// An <seealso cref="IEmulatorService"/> that returns cart/mapper/board information about the Game hardware itself, if available /// An <seealso cref="IEmulatorService"/> that returns cart/mapper/board information about the Game hardware itself, if available

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.IO; using System.IO;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
/// <summary> /// <summary>
/// This service provides a means for the current core to generate a /// This service provides a means for the current core to generate a

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
public interface ICycleTiming public interface ICycleTiming
{ {

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Linq; using System.Linq;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
/// <summary> /// <summary>
/// Specifies an interface for returning the state of a LED drive light such as on Disk and CD Drives, /// Specifies an interface for returning the state of a LED drive light such as on Disk and CD Drives,

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
/// <summary> /// <summary>
/// This service specifies the interaction of the client and the core in terms of the state of input polling /// This service specifies the interaction of the client and the core in terms of the state of input polling

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
/// <summary> /// <summary>
/// This service is use by link cable capable cores to manage the status of the link cable /// This service is use by link cable capable cores to manage the status of the link cable

View File

@ -1,4 +1,6 @@
using System.Collections.Generic; #nullable disable
using System.Collections.Generic;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
/// <summary> /// <summary>
/// This service provides the means for a core to specify region information to the client, such NTSC versus PAL /// This service provides the means for a core to specify region information to the client, such NTSC versus PAL

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
/// <summary> /// <summary>
/// Provides detailed information about the Rom such as hashes, /// Provides detailed information about the Rom such as hashes,

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
/// <summary> /// <summary>
/// This service provides the system by which a client can request SaveRAM data to be stored by the client /// This service provides the system by which a client can request SaveRAM data to be stored by the client

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {

View File

@ -1,4 +1,6 @@
using System.IO; #nullable disable
using System.IO;
using BizHawk.Common.BufferExtensions; using BizHawk.Common.BufferExtensions;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
public interface ITraceSink public interface ITraceSink
{ {

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
/// <summary> /// <summary>
/// Provides an interface to convey the effective X, Y coordinates that represent /// Provides an interface to convey the effective X, Y coordinates that represent

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Linq; using System.Linq;
using BizHawk.Common.ReflectionExtensions; using BizHawk.Common.ReflectionExtensions;

View File

@ -1,3 +1,5 @@
#nullable disable
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common
{ {

View File

@ -1,3 +1,5 @@
#nullable disable
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using BizHawk.BizInvoke; using BizHawk.BizInvoke;

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using BizHawk.BizInvoke; using BizHawk.BizInvoke;
using BizHawk.Common; using BizHawk.Common;

View File

@ -1,4 +1,6 @@
namespace BizHawk.Emulation.Common #nullable disable
namespace BizHawk.Emulation.Common
{ {
public static class Waves public static class Waves
{ {

View File

@ -1,4 +1,6 @@
using System.Collections.Generic; #nullable disable
using System.Collections.Generic;
using System.Linq; using System.Linq;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using Newtonsoft.Json; using Newtonsoft.Json;

View File

@ -1,4 +1,6 @@
using System; #nullable disable
using System;
using System.Collections.Generic; using System.Collections.Generic;
using BizHawk.Emulation.Common; using BizHawk.Emulation.Common;

View File

@ -1,4 +1,6 @@
using System.Collections.Generic; #nullable disable
using System.Collections.Generic;
using System.Drawing; using System.Drawing;
namespace BizHawk.Emulation.Common namespace BizHawk.Emulation.Common

View File

@ -1,6 +1,4 @@
#nullable enable using System.Collections.Generic;
using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using BizHawk.Emulation.Common; using BizHawk.Emulation.Common;