mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-31 23:01:58 +00:00
Do not initialize unnecessarily
This commit is contained in:
parent
decd37ce6d
commit
bfa21358af
72 changed files with 153 additions and 153 deletions
|
@ -119,8 +119,8 @@ namespace ARMeilleure.CodeGen.Arm64
|
|||
Sve2p1 = 1UL << 36,
|
||||
}
|
||||
|
||||
public static LinuxFeatureFlagsHwCap LinuxFeatureInfoHwCap { get; } = 0;
|
||||
public static LinuxFeatureFlagsHwCap2 LinuxFeatureInfoHwCap2 { get; } = 0;
|
||||
public static LinuxFeatureFlagsHwCap LinuxFeatureInfoHwCap { get; }
|
||||
public static LinuxFeatureFlagsHwCap2 LinuxFeatureInfoHwCap2 { get; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
@ -167,7 +167,7 @@ namespace ARMeilleure.CodeGen.Arm64
|
|||
Sha256 = 1 << 8,
|
||||
}
|
||||
|
||||
public static MacOsFeatureFlags MacOsFeatureInfo { get; } = 0;
|
||||
public static MacOsFeatureFlags MacOsFeatureInfo { get; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -146,9 +146,9 @@ namespace ARMeilleure.CodeGen.RegisterAllocators
|
|||
}
|
||||
}
|
||||
|
||||
private Queue<Operation> _fillQueue = null;
|
||||
private Queue<Operation> _spillQueue = null;
|
||||
private ParallelCopy _parallelCopy = null;
|
||||
private Queue<Operation> _fillQueue;
|
||||
private Queue<Operation> _spillQueue;
|
||||
private ParallelCopy _parallelCopy;
|
||||
|
||||
public bool HasCopy { get; private set; }
|
||||
|
||||
|
|
|
@ -111,9 +111,9 @@ namespace ARMeilleure.CodeGen.X86
|
|||
|
||||
public static FeatureFlags1Edx FeatureInfo1Edx { get; }
|
||||
public static FeatureFlags1Ecx FeatureInfo1Ecx { get; }
|
||||
public static FeatureFlags7Ebx FeatureInfo7Ebx { get; } = 0;
|
||||
public static FeatureFlags7Ecx FeatureInfo7Ecx { get; } = 0;
|
||||
public static Xcr0FlagsEax Xcr0InfoEax { get; } = 0;
|
||||
public static FeatureFlags7Ebx FeatureInfo7Ebx { get; }
|
||||
public static FeatureFlags7Ecx FeatureInfo7Ecx { get; }
|
||||
public static Xcr0FlagsEax Xcr0InfoEax { get; }
|
||||
|
||||
public static bool SupportsSse => FeatureInfo1Edx.HasFlag(FeatureFlags1Edx.Sse);
|
||||
public static bool SupportsSse2 => FeatureInfo1Edx.HasFlag(FeatureFlags1Edx.Sse2);
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace ARMeilleure.Decoders
|
|||
Cond = (Condition)((uint)opCode >> 28);
|
||||
}
|
||||
|
||||
public bool IsThumb { get; protected init; } = false;
|
||||
public bool IsThumb { get; protected init; }
|
||||
|
||||
public uint GetPc()
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace ARMeilleure
|
|||
public static class Optimizations
|
||||
{
|
||||
// low-core count PPTC
|
||||
public static bool LowPower { get; set; } = false;
|
||||
public static bool LowPower { get; set; }
|
||||
|
||||
public static bool FastFP { get; set; } = true;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace ARMeilleure.State
|
|||
public long Tpidr2El0;
|
||||
}
|
||||
|
||||
private static NativeCtxStorage _dummyStorage = new();
|
||||
private static NativeCtxStorage _dummyStorage;
|
||||
|
||||
private readonly IJitMemoryBlock _block;
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ namespace ARMeilleure.Translation
|
|||
public bool HasPtc { get; }
|
||||
public Aarch32Mode Mode { get; }
|
||||
|
||||
private int _ifThenBlockStateIndex = 0;
|
||||
private int _ifThenBlockStateIndex;
|
||||
private Condition[] _ifThenBlockState = Array.Empty<Condition>();
|
||||
public bool IsInIfThenBlock => _ifThenBlockStateIndex < _ifThenBlockState.Length;
|
||||
public Condition CurrentIfThenBlockCond => _ifThenBlockState[_ifThenBlockStateIndex];
|
||||
|
|
|
@ -14,8 +14,8 @@ namespace ARMeilleure.Translation
|
|||
|
||||
private const bool Black = true;
|
||||
private const bool Red = false;
|
||||
private IntervalTreeNode<TK, TV> _root = null;
|
||||
private int _count = 0;
|
||||
private IntervalTreeNode<TK, TV> _root;
|
||||
private int _count;
|
||||
|
||||
public int Count => _count;
|
||||
|
||||
|
@ -709,9 +709,9 @@ namespace ARMeilleure.Translation
|
|||
class IntervalTreeNode<TK, TV>
|
||||
{
|
||||
public bool Color = true;
|
||||
public IntervalTreeNode<TK, TV> Left = null;
|
||||
public IntervalTreeNode<TK, TV> Right = null;
|
||||
public IntervalTreeNode<TK, TV> Parent = null;
|
||||
public IntervalTreeNode<TK, TV> Left;
|
||||
public IntervalTreeNode<TK, TV> Right;
|
||||
public IntervalTreeNode<TK, TV> Parent;
|
||||
|
||||
/// <summary>
|
||||
/// The start of the range.
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace Ryujinx.Common.PreciseSleep
|
|||
/// <summary>
|
||||
/// Set to true to disable timepoint realignment.
|
||||
/// </summary>
|
||||
public bool Precise { get; set; } = false;
|
||||
public bool Precise { get; set; }
|
||||
|
||||
public long AdjustTimePoint(long timePoint, long timeoutNs)
|
||||
{
|
||||
|
|
|
@ -70,8 +70,8 @@ namespace Ryujinx.Common.Utilities
|
|||
private BinaryReader _binaryReader;
|
||||
private long _offsetB, _dataSizeB, _cartSizeB, _fileSizeB;
|
||||
private bool _fileOK = true;
|
||||
private bool _freeSpaceChecked = false;
|
||||
private bool _freeSpaceValid = false;
|
||||
private bool _freeSpaceChecked;
|
||||
private bool _freeSpaceValid;
|
||||
|
||||
public enum OperationOutcome
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace Ryujinx.Cpu.AppleHv
|
|||
{
|
||||
private const ulong InterruptIntervalNs = 16 * 1000000; // 16 ms
|
||||
|
||||
private static ulong _interruptTimeDeltaTicks = 0;
|
||||
private static ulong _interruptTimeDeltaTicks;
|
||||
|
||||
public readonly ulong Handle;
|
||||
public readonly HvVcpuExit* ExitInfo;
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace Ryujinx.Cpu.LightningJit.State
|
|||
public int Running;
|
||||
}
|
||||
|
||||
private static NativeCtxStorage _dummyStorage = new();
|
||||
private static NativeCtxStorage _dummyStorage;
|
||||
|
||||
private readonly IJitMemoryBlock _block;
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace Ryujinx.Graphics.GAL.Multithreading
|
|||
/// </summary>
|
||||
class BufferMap
|
||||
{
|
||||
private ulong _bufferHandle = 0;
|
||||
private ulong _bufferHandle;
|
||||
|
||||
private readonly Dictionary<BufferHandle, BufferHandle> _bufferMap = new();
|
||||
private readonly HashSet<BufferHandle> _inFlight = new();
|
||||
|
|
|
@ -55,7 +55,7 @@ namespace Ryujinx.Graphics.GAL.Multithreading
|
|||
private int _refProducerPtr;
|
||||
private int _refConsumerPtr;
|
||||
|
||||
public uint ProgramCount { get; set; } = 0;
|
||||
public uint ProgramCount { get; set; }
|
||||
|
||||
private Action _interruptAction;
|
||||
private readonly Lock _interruptLock = new();
|
||||
|
|
|
@ -15,10 +15,10 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
|
|||
|
||||
// State associated with direct uniform buffer updates.
|
||||
// This state is used to attempt to batch together consecutive updates.
|
||||
private ulong _ubBeginCpuAddress = 0;
|
||||
private ulong _ubFollowUpAddress = 0;
|
||||
private ulong _ubByteCount = 0;
|
||||
private int _ubIndex = 0;
|
||||
private ulong _ubBeginCpuAddress;
|
||||
private ulong _ubFollowUpAddress;
|
||||
private ulong _ubByteCount;
|
||||
private int _ubIndex;
|
||||
private readonly int[] _ubData = new int[UniformDataCacheSize];
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -61,7 +61,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
|
|||
/// <summary>
|
||||
/// Index buffer data streamer for inline index buffer updates, such as those used in legacy OpenGL.
|
||||
/// </summary>
|
||||
public IbStreamer IbStreamer = new();
|
||||
public IbStreamer IbStreamer;
|
||||
|
||||
/// <summary>
|
||||
/// If the vertex shader is emulated on compute, this should be set to the compute program, otherwise it should be null.
|
||||
|
|
|
@ -66,12 +66,12 @@ namespace Ryujinx.Graphics.Gpu
|
|||
/// <summary>
|
||||
/// Enables or disables recompression of compressed textures that are not natively supported by the host.
|
||||
/// </summary>
|
||||
public static bool EnableTextureRecompression = false;
|
||||
public static bool EnableTextureRecompression;
|
||||
|
||||
/// <summary>
|
||||
/// Enables or disables color space passthrough, if available.
|
||||
/// </summary>
|
||||
public static bool EnableColorSpacePassthrough = false;
|
||||
public static bool EnableColorSpacePassthrough;
|
||||
}
|
||||
#pragma warning restore CA2211
|
||||
}
|
||||
|
|
|
@ -60,13 +60,13 @@ namespace Ryujinx.Graphics.Gpu.Memory
|
|||
/// <remarks>
|
||||
/// This is null until at least one modification occurs.
|
||||
/// </remarks>
|
||||
private BufferModifiedRangeList _modifiedRanges = null;
|
||||
private BufferModifiedRangeList _modifiedRanges;
|
||||
|
||||
/// <summary>
|
||||
/// A structure that is used to flush buffer data back to a host mapped buffer for cached readback.
|
||||
/// Only used if the buffer data is explicitly owned by device local memory.
|
||||
/// </summary>
|
||||
private BufferPreFlush _preFlush = null;
|
||||
private BufferPreFlush _preFlush;
|
||||
|
||||
/// <summary>
|
||||
/// Usage tracking state that determines what type of backing the buffer should use.
|
||||
|
|
|
@ -69,7 +69,7 @@ namespace Ryujinx.Graphics.Gpu.Memory
|
|||
}
|
||||
|
||||
private List<PhysicalDependency> _dependencies;
|
||||
private BufferModifiedRangeList _modifiedRanges = null;
|
||||
private BufferModifiedRangeList _modifiedRanges;
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new instance of the buffer.
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
|
||||
private readonly Sync _sync;
|
||||
|
||||
public uint ProgramCount { get; set; } = 0;
|
||||
public uint ProgramCount { get; set; }
|
||||
|
||||
public event EventHandler<ScreenCaptureImageInfo> ScreenCaptured;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace Ryujinx.Graphics.OpenGL.Queries
|
|||
private readonly CounterQueue _queue;
|
||||
private readonly BufferedQuery _counter;
|
||||
|
||||
private bool _hostAccessReserved = false;
|
||||
private bool _hostAccessReserved;
|
||||
private int _refCount = 1; // Starts with a reference from the counter queue.
|
||||
|
||||
private readonly Lock _lock = new();
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
public nint Handle;
|
||||
}
|
||||
|
||||
private ulong _firstHandle = 0;
|
||||
private ulong _firstHandle;
|
||||
private static ClientWaitSyncFlags SyncFlags => HwCapabilities.RequiresSyncFlush ? ClientWaitSyncFlags.None : ClientWaitSyncFlags.SyncFlushCommandsBit;
|
||||
|
||||
private readonly List<SyncHandle> _handles = new();
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
private bool _initialized;
|
||||
|
||||
public uint ProgramCount { get; set; } = 0;
|
||||
public uint ProgramCount { get; set; }
|
||||
|
||||
internal FormatCapabilities FormatCapabilities { get; private set; }
|
||||
internal HardwareCapabilities Capabilities;
|
||||
|
|
|
@ -38,7 +38,7 @@ namespace Ryujinx.HLE.FileSystem
|
|||
|
||||
private readonly ConcurrentDictionary<ulong, Stream> _romFsByPid;
|
||||
|
||||
private static bool _isInitialized = false;
|
||||
private static bool _isInitialized;
|
||||
|
||||
public static VirtualFileSystem CreateInstance()
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace Ryujinx.HLE.HOS.Applets
|
|||
private SoftwareKeyboardState _foregroundState = SoftwareKeyboardState.Uninitialized;
|
||||
private volatile InlineKeyboardState _backgroundState = InlineKeyboardState.Uninitialized;
|
||||
|
||||
private bool _isBackground = false;
|
||||
private bool _isBackground;
|
||||
|
||||
private AppletSession _normalSession;
|
||||
private AppletSession _interactiveSession;
|
||||
|
@ -53,14 +53,14 @@ namespace Ryujinx.HLE.HOS.Applets
|
|||
private byte[] _transferMemory;
|
||||
|
||||
private string _textValue = string.Empty;
|
||||
private int _cursorBegin = 0;
|
||||
private int _cursorBegin;
|
||||
private Encoding _encoding = Encoding.Unicode;
|
||||
private KeyboardResult _lastResult = KeyboardResult.NotSet;
|
||||
|
||||
private IDynamicTextInputHandler _dynamicTextInputHandler = null;
|
||||
private SoftwareKeyboardRenderer _keyboardRenderer = null;
|
||||
private NpadReader _npads = null;
|
||||
private bool _canAcceptController = false;
|
||||
private IDynamicTextInputHandler _dynamicTextInputHandler;
|
||||
private SoftwareKeyboardRenderer _keyboardRenderer;
|
||||
private NpadReader _npads;
|
||||
private bool _canAcceptController;
|
||||
private KeyboardInputMode _inputMode = KeyboardInputMode.ControllerAndKeyboard;
|
||||
|
||||
private readonly Lock _lock = new();
|
||||
|
|
|
@ -24,15 +24,15 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
|
|||
|
||||
private readonly Lock _bufferLock = new();
|
||||
|
||||
private RenderingSurfaceInfo _surfaceInfo = null;
|
||||
private RenderingSurfaceInfo _surfaceInfo;
|
||||
private SKImageInfo _imageInfo;
|
||||
private SKSurface _surface = null;
|
||||
private byte[] _bufferData = null;
|
||||
private SKSurface _surface;
|
||||
private byte[] _bufferData;
|
||||
|
||||
private readonly SKBitmap _ryujinxLogo = null;
|
||||
private readonly SKBitmap _padAcceptIcon = null;
|
||||
private readonly SKBitmap _padCancelIcon = null;
|
||||
private readonly SKBitmap _keyModeIcon = null;
|
||||
private readonly SKBitmap _ryujinxLogo;
|
||||
private readonly SKBitmap _padAcceptIcon;
|
||||
private readonly SKBitmap _padCancelIcon;
|
||||
private readonly SKBitmap _keyModeIcon;
|
||||
|
||||
private readonly float _textBoxOutlineWidth;
|
||||
private readonly float _padPressedPenWidth;
|
||||
|
|
|
@ -8,15 +8,15 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
|
|||
internal class SoftwareKeyboardUIState
|
||||
{
|
||||
public string InputText = string.Empty;
|
||||
public int CursorBegin = 0;
|
||||
public int CursorEnd = 0;
|
||||
public bool AcceptPressed = false;
|
||||
public bool CancelPressed = false;
|
||||
public bool OverwriteMode = false;
|
||||
public int CursorBegin;
|
||||
public int CursorEnd;
|
||||
public bool AcceptPressed;
|
||||
public bool CancelPressed;
|
||||
public bool OverwriteMode;
|
||||
public bool TypingEnabled = true;
|
||||
public bool ControllerEnabled = true;
|
||||
public int TextBoxBlinkCounter = 0;
|
||||
public int TextBoxBlinkCounter;
|
||||
|
||||
public RenderingSurfaceInfo SurfaceInfo = null;
|
||||
public RenderingSurfaceInfo SurfaceInfo;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,8 +25,8 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
|
|||
}
|
||||
}
|
||||
|
||||
private TRef<bool> _cancelled = null;
|
||||
private Thread _thread = null;
|
||||
private TRef<bool> _cancelled;
|
||||
private Thread _thread;
|
||||
private readonly Lock _lock = new();
|
||||
|
||||
public bool IsRunning
|
||||
|
|
|
@ -22,25 +22,25 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Sys
|
|||
private int _fatalSectionCount;
|
||||
|
||||
// TODO: Set this when the game goes in suspension (go back to home menu ect), we currently don't support that so we can keep it set to 0.
|
||||
private readonly ulong _accumulatedSuspendedTickValue = 0;
|
||||
private readonly ulong _accumulatedSuspendedTickValue;
|
||||
|
||||
// TODO: Determine where those fields are used.
|
||||
#pragma warning disable IDE0052 // Remove unread private member
|
||||
private bool _screenShotPermission = false;
|
||||
private bool _operationModeChangedNotification = false;
|
||||
private bool _performanceModeChangedNotification = false;
|
||||
private bool _restartMessageEnabled = false;
|
||||
private bool _outOfFocusSuspendingEnabled = false;
|
||||
private bool _handlesRequestToDisplay = false;
|
||||
private bool _screenShotPermission;
|
||||
private bool _operationModeChangedNotification;
|
||||
private bool _performanceModeChangedNotification;
|
||||
private bool _restartMessageEnabled;
|
||||
private bool _outOfFocusSuspendingEnabled;
|
||||
private bool _handlesRequestToDisplay;
|
||||
#pragma warning restore IDE0052
|
||||
private bool _autoSleepDisabled = false;
|
||||
private bool _autoSleepDisabled;
|
||||
#pragma warning disable IDE0052 // Remove unread private member
|
||||
private bool _albumImageTakenNotificationEnabled = false;
|
||||
private bool _recordVolumeMuted = false;
|
||||
private bool _albumImageTakenNotificationEnabled;
|
||||
private bool _recordVolumeMuted;
|
||||
|
||||
private uint _screenShotImageOrientation = 0;
|
||||
private uint _screenShotImageOrientation;
|
||||
#pragma warning restore IDE0052
|
||||
private uint _idleTimeDetectionExtension = 0;
|
||||
private uint _idleTimeDetectionExtension;
|
||||
|
||||
public ISelfController(ServiceCtx context, ulong pid)
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@ namespace Ryujinx.HLE.HOS.Services.Apm
|
|||
{
|
||||
public PerformanceState() { }
|
||||
|
||||
public bool CpuOverclockEnabled = false;
|
||||
public bool CpuOverclockEnabled;
|
||||
|
||||
public PerformanceMode PerformanceMode = PerformanceMode.Default;
|
||||
public CpuBoostMode CpuBoostMode = CpuBoostMode.Disabled;
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
|
|||
{
|
||||
private readonly LibHac.Fs.Fsa.IFileSystem _fs;
|
||||
private readonly string _filePath;
|
||||
private readonly UniqueRef<LibHac.Fs.Fsa.IFile> _fileReference = new();
|
||||
private readonly UniqueRef<LibHac.Fs.Fsa.IFile> _fileReference;
|
||||
private readonly FileInfo _fileInfo;
|
||||
|
||||
public LazyFile(string filePath, string prefix, LibHac.Fs.Fsa.IFileSystem fs)
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
|
|||
};
|
||||
|
||||
internal NpadJoyHoldType JoyHold { get; set; }
|
||||
internal bool SixAxisActive = false; // TODO: link to hidserver when implemented
|
||||
internal bool SixAxisActive; // TODO: link to hidserver when implemented
|
||||
internal ControllerType SupportedStyleSets { get; set; }
|
||||
|
||||
public Dictionary<PlayerIndex, ConcurrentQueue<(VibrationValue, VibrationValue)>> RumbleQueues = new();
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid.Irs
|
|||
[Service("irs")]
|
||||
class IIrSensorServer : IpcService
|
||||
{
|
||||
private int _irsensorSharedMemoryHandle = 0;
|
||||
private int _irsensorSharedMemoryHandle;
|
||||
|
||||
public IIrSensorServer(ServiceCtx context) { }
|
||||
|
||||
|
|
|
@ -10,8 +10,8 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.Lp2p
|
|||
{
|
||||
private readonly KEvent _stateChangeEvent;
|
||||
private readonly KEvent _jointEvent;
|
||||
private int _stateChangeEventHandle = 0;
|
||||
private int _jointEventHandle = 0;
|
||||
private int _stateChangeEventHandle;
|
||||
private int _jointEventHandle;
|
||||
|
||||
public ISfServiceMonitor(ServiceCtx context)
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator
|
|||
private readonly IUserLocalCommunicationService _parent;
|
||||
|
||||
public NetworkInfo NetworkInfo;
|
||||
public Array8<NodeLatestUpdate> LatestUpdates = new();
|
||||
public Array8<NodeLatestUpdate> LatestUpdates;
|
||||
public bool Connected { get; private set; }
|
||||
|
||||
public ProxyConfig Config => _parent.NetworkClient.Config;
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator.LdnRyu
|
|||
{
|
||||
public bool NeedsRealId => true;
|
||||
|
||||
private static InitializeMessage InitializeMemory = new InitializeMessage();
|
||||
private static InitializeMessage InitializeMemory;
|
||||
|
||||
private const int InactiveTimeout = 6000;
|
||||
private const int FailureTimeout = 4000;
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator.LdnRyu
|
|||
private readonly int _headerSize = Marshal.SizeOf<LdnHeader>();
|
||||
|
||||
private readonly byte[] _buffer = new byte[MaxPacketSize];
|
||||
private int _bufferEnd = 0;
|
||||
private int _bufferEnd;
|
||||
|
||||
// Client Packets.
|
||||
public event Action<LdnHeader, InitializeMessage> Initialize;
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator
|
|||
class Station : IDisposable
|
||||
{
|
||||
public NetworkInfo NetworkInfo;
|
||||
public Array8<NodeLatestUpdate> LatestUpdates = new();
|
||||
public Array8<NodeLatestUpdate> LatestUpdates;
|
||||
|
||||
private readonly IUserLocalCommunicationService _parent;
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ namespace Ryujinx.HLE.HOS.Services.Mii
|
|||
{
|
||||
class MiiDatabaseManager
|
||||
{
|
||||
private readonly bool _isTestModeEnabled = false;
|
||||
private uint _mountCounter = 0;
|
||||
private readonly bool _isTestModeEnabled;
|
||||
private uint _mountCounter;
|
||||
|
||||
private const ulong DatabaseTestSaveDataId = 0x8000000000000031;
|
||||
private const ulong DatabaseSaveDataId = 0x8000000000000030;
|
||||
|
|
|
@ -13,9 +13,9 @@ namespace Ryujinx.HLE.HOS.Services.Nifm.StaticService
|
|||
{
|
||||
private readonly GeneralServiceDetail _generalServiceDetail;
|
||||
|
||||
private IPInterfaceProperties _targetPropertiesCache = null;
|
||||
private UnicastIPAddressInformation _targetAddressInfoCache = null;
|
||||
private string _cacheChosenInterface = null;
|
||||
private IPInterfaceProperties _targetPropertiesCache;
|
||||
private UnicastIPAddressInformation _targetAddressInfoCache;
|
||||
private string _cacheChosenInterface;
|
||||
|
||||
public IGeneralService()
|
||||
{
|
||||
|
|
|
@ -52,10 +52,10 @@ namespace Ryujinx.HLE.HOS.Services.Nv
|
|||
private IVirtualMemoryManager _clientMemory;
|
||||
private ulong _owner;
|
||||
|
||||
private bool _transferMemInitialized = false;
|
||||
private bool _transferMemInitialized;
|
||||
|
||||
// TODO: This should call set:sys::GetDebugModeFlag
|
||||
private readonly bool _debugModeEnabled = false;
|
||||
private readonly bool _debugModeEnabled;
|
||||
|
||||
public INvDrvServices(ServiceCtx context) : base(context.Device.System.NvDrvServer)
|
||||
{
|
||||
|
|
|
@ -15,11 +15,11 @@ namespace Ryujinx.HLE.HOS.Services.Pctl.ParentalControlServiceFactory
|
|||
private int[] _ratingAge;
|
||||
|
||||
// TODO: Find where they are set.
|
||||
private readonly bool _restrictionEnabled = false;
|
||||
private readonly bool _featuresRestriction = false;
|
||||
private bool _freeCommunicationEnabled = false;
|
||||
private readonly bool _restrictionEnabled;
|
||||
private readonly bool _featuresRestriction;
|
||||
private bool _freeCommunicationEnabled;
|
||||
private readonly bool _stereoVisionRestrictionConfigurable = true;
|
||||
private bool _stereoVisionRestriction = false;
|
||||
private bool _stereoVisionRestriction;
|
||||
#pragma warning restore IDE0052, CS0414
|
||||
|
||||
public IParentalControlService(ServiceCtx context, ulong pid, bool withInitialize, int permissionFlag)
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Ryujinx.HLE.HOS.Services.Pcv.Clkrst
|
|||
[Service("clkrst:i")] // 8.0.0+
|
||||
class IClkrstManager : IpcService
|
||||
{
|
||||
private int _moduleStateTableEventHandle = 0;
|
||||
private int _moduleStateTableEventHandle;
|
||||
|
||||
public IClkrstManager(ServiceCtx context) { }
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace Ryujinx.HLE.HOS.Services
|
|||
private KProcess _selfProcess;
|
||||
private KThread _selfThread;
|
||||
private KEvent _wakeEvent;
|
||||
private int _wakeHandle = 0;
|
||||
private int _wakeHandle;
|
||||
|
||||
private readonly ReaderWriterLockSlim _handleLock = new();
|
||||
private readonly Dictionary<int, IpcService> _sessions = new();
|
||||
|
@ -52,7 +52,7 @@ namespace Ryujinx.HLE.HOS.Services
|
|||
private readonly MemoryStream _responseDataStream;
|
||||
private readonly BinaryWriter _responseDataWriter;
|
||||
|
||||
private int _isDisposed = 0;
|
||||
private int _isDisposed;
|
||||
|
||||
public ManualResetEvent InitDone { get; }
|
||||
public string Name { get; }
|
||||
|
|
|
@ -186,7 +186,7 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd.Impl
|
|||
}
|
||||
}
|
||||
|
||||
bool hasEmittedBlockingWarning = false;
|
||||
bool hasEmittedBlockingWarning;
|
||||
|
||||
public LinuxError Receive(out int receiveSize, Span<byte> buffer, BsdSocketFlags flags)
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Nsd
|
|||
private readonly FqdnResolver _fqdnResolver;
|
||||
#pragma warning restore IDE0052
|
||||
|
||||
private readonly bool _isInitialized = false;
|
||||
private readonly bool _isInitialized;
|
||||
|
||||
public IManager(ServiceCtx context)
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger
|
|||
{
|
||||
private static readonly Dictionary<int, IBinder> _registeredBinderObjects = new();
|
||||
|
||||
private static int _lastBinderId = 0;
|
||||
private static int _lastBinderId;
|
||||
|
||||
private static readonly Lock _lock = new();
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace Ryujinx.HLE.HOS.Services.Time
|
|||
private readonly TimeManager _timeManager;
|
||||
private readonly TimePermissions _permissions;
|
||||
|
||||
private int _timeSharedMemoryNativeHandle = 0;
|
||||
private int _timeSharedMemoryNativeHandle;
|
||||
|
||||
public IStaticServiceForPsc(ServiceCtx context, TimePermissions permissions) : this(TimeManager.Instance, permissions) { }
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Ryujinx.HLE.HOS.Tamper
|
|||
private readonly IOperation _entryPoint;
|
||||
|
||||
public string Name { get; }
|
||||
public bool TampersCodeMemory { get; set; } = false;
|
||||
public bool TampersCodeMemory { get; set; }
|
||||
public ITamperedProcess Process { get; }
|
||||
public bool IsEnabled { get; set; }
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Ryujinx.HLE.HOS.Tamper
|
|||
{
|
||||
class Register : IOperand
|
||||
{
|
||||
private ulong _register = 0;
|
||||
private ulong _register;
|
||||
private readonly string _alias;
|
||||
|
||||
public Register(string alias)
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Tamper
|
|||
|
||||
public ProcessState State => _process.State;
|
||||
|
||||
public bool TamperedCodeMemory { get; set; } = false;
|
||||
public bool TamperedCodeMemory { get; set; }
|
||||
|
||||
public TamperedKProcess(KProcess process)
|
||||
{
|
||||
|
|
|
@ -16,9 +16,9 @@ namespace Ryujinx.HLE.HOS
|
|||
// cheat and the re-execution of the first one.
|
||||
private const int TamperMachineSleepMs = 1000 / 12;
|
||||
|
||||
private Thread _tamperThread = null;
|
||||
private Thread _tamperThread;
|
||||
private readonly ConcurrentQueue<ITamperProgram> _programs = new();
|
||||
private long _pressedKeys = 0;
|
||||
private long _pressedKeys;
|
||||
private readonly Dictionary<string, ITamperProgram> _programDictionary = new();
|
||||
|
||||
private void Activate()
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace Ryujinx.HLE
|
|||
public IHostUIHandler UIHandler { get; }
|
||||
|
||||
public VSyncMode VSyncMode { get; set; } = VSyncMode.Switch;
|
||||
public bool CustomVSyncIntervalEnabled { get; set; } = false;
|
||||
public bool CustomVSyncIntervalEnabled { get; set; }
|
||||
public int CustomVSyncInterval { get; set; }
|
||||
|
||||
public long TargetVSyncInterval { get; set; } = 60;
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace Ryujinx.Headless.SDL2
|
|||
protected const int DefaultHeight = 720;
|
||||
private const int TargetFps = 60;
|
||||
private SDL_WindowFlags DefaultFlags = SDL_WindowFlags.SDL_WINDOW_ALLOW_HIGHDPI | SDL_WindowFlags.SDL_WINDOW_RESIZABLE | SDL_WindowFlags.SDL_WINDOW_INPUT_FOCUS | SDL_WindowFlags.SDL_WINDOW_SHOWN;
|
||||
private SDL_WindowFlags FullscreenFlag = 0;
|
||||
private SDL_WindowFlags FullscreenFlag;
|
||||
|
||||
private static readonly ConcurrentQueue<Action> _mainThreadActions = new();
|
||||
|
||||
|
|
|
@ -60,8 +60,8 @@ namespace Ryujinx.Memory.Tracking
|
|||
private readonly MemoryTracking _tracking;
|
||||
private bool _disposed;
|
||||
|
||||
private int _checkCount = 0;
|
||||
private int _volatileCount = 0;
|
||||
private int _checkCount;
|
||||
private int _volatileCount;
|
||||
private bool _volatile;
|
||||
|
||||
internal MemoryPermission RequiredPermission
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Ryujinx.Tests.Memory
|
|||
{
|
||||
public bool UsesPrivateAllocations => false;
|
||||
|
||||
public bool NoMappings = false;
|
||||
public bool NoMappings;
|
||||
|
||||
public event Action<ulong, ulong, MemoryPermission> OnProtect;
|
||||
|
||||
|
|
|
@ -19,10 +19,10 @@ namespace Ryujinx.Tests.Cpu
|
|||
protected static ulong DataBaseAddress = CodeBaseAddress + Size;
|
||||
#pragma warning restore CA2211
|
||||
|
||||
private static readonly bool _ignoreFpcrFz = false;
|
||||
private static readonly bool _ignoreFpcrDn = false;
|
||||
private static readonly bool _ignoreFpcrFz;
|
||||
private static readonly bool _ignoreFpcrDn;
|
||||
|
||||
private static readonly bool _ignoreAllExceptFpsrQc = false;
|
||||
private static readonly bool _ignoreAllExceptFpsrQc;
|
||||
|
||||
private ulong _currAddress;
|
||||
|
||||
|
|
|
@ -58,9 +58,9 @@ namespace Ryujinx.Tests.Cpu
|
|||
|
||||
private const int RndCnt = 2;
|
||||
|
||||
private static readonly bool _noZeros = false;
|
||||
private static readonly bool _noInfs = false;
|
||||
private static readonly bool _noNaNs = false;
|
||||
private static readonly bool _noZeros;
|
||||
private static readonly bool _noInfs;
|
||||
private static readonly bool _noNaNs;
|
||||
|
||||
#region "AluImm & Csel"
|
||||
[Test, Pairwise]
|
||||
|
|
|
@ -57,9 +57,9 @@ namespace Ryujinx.Tests.Cpu
|
|||
|
||||
private const int RndCnt = 2;
|
||||
|
||||
private static readonly bool _noZeros = false;
|
||||
private static readonly bool _noInfs = false;
|
||||
private static readonly bool _noNaNs = false;
|
||||
private static readonly bool _noZeros;
|
||||
private static readonly bool _noInfs;
|
||||
private static readonly bool _noNaNs;
|
||||
|
||||
[Test, Pairwise]
|
||||
public void Vmsr_Vcmp_Vmrs([ValueSource(nameof(_1S_F_))] ulong a,
|
||||
|
|
|
@ -1251,9 +1251,9 @@ namespace Ryujinx.Tests.Cpu
|
|||
|
||||
private const int RndCnt = 2;
|
||||
|
||||
private static readonly bool _noZeros = false;
|
||||
private static readonly bool _noInfs = false;
|
||||
private static readonly bool _noNaNs = false;
|
||||
private static readonly bool _noZeros;
|
||||
private static readonly bool _noInfs;
|
||||
private static readonly bool _noNaNs;
|
||||
|
||||
[Test, Pairwise, Description("ABS <V><d>, <V><n>")]
|
||||
public void Abs_S_D([Values(0u)] uint rd,
|
||||
|
|
|
@ -179,9 +179,9 @@ namespace Ryujinx.Tests.Cpu
|
|||
|
||||
private const int RndCnt = 2;
|
||||
|
||||
private static readonly bool _noZeros = false;
|
||||
private static readonly bool _noInfs = false;
|
||||
private static readonly bool _noNaNs = false;
|
||||
private static readonly bool _noZeros;
|
||||
private static readonly bool _noInfs;
|
||||
private static readonly bool _noNaNs;
|
||||
|
||||
[Test, Pairwise, Description("SHA256SU0.32 <Qd>, <Qm>")]
|
||||
public void Sha256su0_V([Values(0xF3BA03C0u)] uint opcode,
|
||||
|
|
|
@ -370,9 +370,9 @@ namespace Ryujinx.Tests.Cpu
|
|||
|
||||
private const int RndCnt = 2;
|
||||
|
||||
private static readonly bool _noZeros = false;
|
||||
private static readonly bool _noInfs = false;
|
||||
private static readonly bool _noNaNs = false;
|
||||
private static readonly bool _noZeros;
|
||||
private static readonly bool _noInfs;
|
||||
private static readonly bool _noNaNs;
|
||||
|
||||
[Test, Pairwise]
|
||||
[Explicit]
|
||||
|
|
|
@ -161,9 +161,9 @@ namespace Ryujinx.Tests.Cpu
|
|||
|
||||
private const int RndCnt = 2;
|
||||
|
||||
private static readonly bool _noZeros = false;
|
||||
private static readonly bool _noInfs = false;
|
||||
private static readonly bool _noNaNs = false;
|
||||
private static readonly bool _noZeros;
|
||||
private static readonly bool _noInfs;
|
||||
private static readonly bool _noNaNs;
|
||||
|
||||
[Explicit]
|
||||
[Test, Pairwise, Description("VCVT.<dt>.F32 <Sd>, <Sm>")]
|
||||
|
|
|
@ -135,9 +135,9 @@ namespace Ryujinx.Tests.Cpu
|
|||
private const int RndCnt = 2;
|
||||
private const int RndCntNzcv = 2;
|
||||
|
||||
private static readonly bool _noZeros = false;
|
||||
private static readonly bool _noInfs = false;
|
||||
private static readonly bool _noNaNs = false;
|
||||
private static readonly bool _noZeros;
|
||||
private static readonly bool _noInfs;
|
||||
private static readonly bool _noNaNs;
|
||||
|
||||
[Test, Pairwise]
|
||||
[Explicit]
|
||||
|
|
|
@ -600,9 +600,9 @@ namespace Ryujinx.Tests.Cpu
|
|||
|
||||
private const int RndCnt = 2;
|
||||
|
||||
private static readonly bool _noZeros = false;
|
||||
private static readonly bool _noInfs = false;
|
||||
private static readonly bool _noNaNs = false;
|
||||
private static readonly bool _noZeros;
|
||||
private static readonly bool _noInfs;
|
||||
private static readonly bool _noNaNs;
|
||||
|
||||
[Test, Pairwise, Description("ADD <V><d>, <V><n>, <V><m>")]
|
||||
public void Add_S_D([Values(0u)] uint rd,
|
||||
|
|
|
@ -272,9 +272,9 @@ namespace Ryujinx.Tests.Cpu
|
|||
|
||||
private const int RndCnt = 2;
|
||||
|
||||
private static readonly bool _noZeros = false;
|
||||
private static readonly bool _noInfs = false;
|
||||
private static readonly bool _noNaNs = false;
|
||||
private static readonly bool _noZeros;
|
||||
private static readonly bool _noInfs;
|
||||
private static readonly bool _noNaNs;
|
||||
|
||||
[Test, Pairwise, Description("SHA256H.32 <Qd>, <Qn>, <Qm>")]
|
||||
public void Sha256h_V([Values(0xF3000C40u)] uint opcode,
|
||||
|
|
|
@ -213,9 +213,9 @@ namespace Ryujinx.Tests.Cpu
|
|||
|
||||
private const int RndCnt = 2;
|
||||
|
||||
private static readonly bool _noZeros = false;
|
||||
private static readonly bool _noInfs = false;
|
||||
private static readonly bool _noNaNs = false;
|
||||
private static readonly bool _noZeros;
|
||||
private static readonly bool _noInfs;
|
||||
private static readonly bool _noNaNs;
|
||||
|
||||
// Fused.
|
||||
[Test, Pairwise]
|
||||
|
|
|
@ -539,9 +539,9 @@ namespace Ryujinx.Tests.Cpu
|
|||
|
||||
private const int RndCnt = 2;
|
||||
|
||||
private static readonly bool _noZeros = false;
|
||||
private static readonly bool _noInfs = false;
|
||||
private static readonly bool _noNaNs = false;
|
||||
private static readonly bool _noZeros;
|
||||
private static readonly bool _noInfs;
|
||||
private static readonly bool _noNaNs;
|
||||
|
||||
[Test, Pairwise]
|
||||
[Explicit]
|
||||
|
|
|
@ -94,7 +94,7 @@ namespace Ryujinx.Ava
|
|||
|
||||
private long _lastCursorMoveTime;
|
||||
private bool _isCursorInRenderer = true;
|
||||
private bool _ignoreCursorState = false;
|
||||
private bool _ignoreCursorState;
|
||||
|
||||
private enum CursorStates
|
||||
{
|
||||
|
@ -108,7 +108,7 @@ namespace Ryujinx.Ava
|
|||
|
||||
private DateTime _lastShaderReset;
|
||||
private uint _displayCount;
|
||||
private uint _previousCount = 0;
|
||||
private uint _previousCount;
|
||||
|
||||
private bool _isStopped;
|
||||
private bool _isActive;
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace Ryujinx.Ava.UI.Models
|
|||
{
|
||||
public class CheatNode : BaseModel
|
||||
{
|
||||
private bool _isEnabled = false;
|
||||
private bool _isEnabled;
|
||||
public ObservableCollection<CheatNode> SubNodes { get; } = new();
|
||||
public string CleanName => Name[1..^7];
|
||||
public string BuildIdKey => $"{BuildId}-{Name}";
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
private AvaloniaList<DownloadableContentModel> _downloadableContents = new();
|
||||
private AvaloniaList<DownloadableContentModel> _selectedDownloadableContents = new();
|
||||
private AvaloniaList<DownloadableContentModel> _views = new();
|
||||
private bool _showBundledContentNotice = false;
|
||||
private bool _showBundledContentNotice;
|
||||
|
||||
private string _search;
|
||||
private readonly ApplicationData _applicationData;
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
private AvaloniaList<TitleUpdateModel> _titleUpdates = new();
|
||||
private AvaloniaList<object> _views = new();
|
||||
private object _selectedUpdate = new TitleUpdateViewNoUpdateSentinal();
|
||||
private bool _showBundledContentNotice = false;
|
||||
private bool _showBundledContentNotice;
|
||||
|
||||
public AvaloniaList<TitleUpdateModel> TitleUpdates
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue