mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-23 02:05:44 +00:00
Suppress warnings from fields never used or never assigned (CS0169 and CS0649) (#919)
* chore : disable unwanted warnings and minor code cleanup * chore : remove more warnings * fix : reorder struct correctly * fix : restore _isKernel and remove useless comment * fix : copy/paste error * fix : restore CallMethod call * fix : whitespace * chore : clean using * feat : remove warnings * fix : simplify warning removal on struct * fix : revert fields deletion and code clean up * fix : re-add RE value * fix : typo
This commit is contained in:
parent
91fa1debd4
commit
4738113f29
65 changed files with 127 additions and 28 deletions
|
@ -6,9 +6,11 @@ namespace ARMeilleure.Diagnostics
|
||||||
{
|
{
|
||||||
static class Logger
|
static class Logger
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0169
|
||||||
private static long _startTime;
|
private static long _startTime;
|
||||||
|
|
||||||
private static long[] _accumulatedTime;
|
private static long[] _accumulatedTime;
|
||||||
|
#pragma warning restore CS0196
|
||||||
|
|
||||||
static Logger()
|
static Logger()
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,8 +11,10 @@ namespace ARMeilleure
|
||||||
{
|
{
|
||||||
private const int ReportMaxFunctions = 100;
|
private const int ReportMaxFunctions = 100;
|
||||||
|
|
||||||
|
#pragma warning disable CS0169
|
||||||
[ThreadStatic]
|
[ThreadStatic]
|
||||||
private static Stopwatch _executionTimer;
|
private static Stopwatch _executionTimer;
|
||||||
|
#pragma warning restore CS0169
|
||||||
|
|
||||||
private static ConcurrentDictionary<ulong, long> _ticksPerFunction;
|
private static ConcurrentDictionary<ulong, long> _ticksPerFunction;
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,9 @@ namespace Ryujinx.Debugger.Profiler
|
||||||
public static float UpdateRate => _settings.UpdateRate;
|
public static float UpdateRate => _settings.UpdateRate;
|
||||||
public static long HistoryLength => _settings.History;
|
public static long HistoryLength => _settings.History;
|
||||||
|
|
||||||
|
#pragma warning disable CS0649
|
||||||
private static InternalProfile _profileInstance;
|
private static InternalProfile _profileInstance;
|
||||||
|
#pragma warning restore CS0649
|
||||||
private static ProfilerSettings _settings;
|
private static ProfilerSettings _settings;
|
||||||
|
|
||||||
[Conditional("USE_DEBUGGING")]
|
[Conditional("USE_DEBUGGING")]
|
||||||
|
|
|
@ -9,7 +9,9 @@ namespace Ryujinx.Debugger.UI
|
||||||
public event EventHandler DebuggerEnabled;
|
public event EventHandler DebuggerEnabled;
|
||||||
public event EventHandler DebuggerDisabled;
|
public event EventHandler DebuggerDisabled;
|
||||||
|
|
||||||
|
#pragma warning disable CS0649
|
||||||
[GUI] Notebook _widgetNotebook;
|
[GUI] Notebook _widgetNotebook;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
public DebuggerWidget() : this(new Builder("Ryujinx.Debugger.UI.DebuggerWidget.glade")) { }
|
public DebuggerWidget() : this(new Builder("Ryujinx.Debugger.UI.DebuggerWidget.glade")) { }
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,7 @@ namespace Ryujinx.Debugger.UI
|
||||||
|
|
||||||
private SkRenderer _renderer;
|
private SkRenderer _renderer;
|
||||||
|
|
||||||
|
#pragma warning disable CS0649
|
||||||
[GUI] ScrolledWindow _scrollview;
|
[GUI] ScrolledWindow _scrollview;
|
||||||
[GUI] CheckButton _enableCheckbutton;
|
[GUI] CheckButton _enableCheckbutton;
|
||||||
[GUI] Scrollbar _outputScrollbar;
|
[GUI] Scrollbar _outputScrollbar;
|
||||||
|
@ -90,6 +91,7 @@ namespace Ryujinx.Debugger.UI
|
||||||
[GUI] CheckButton _showInactive;
|
[GUI] CheckButton _showInactive;
|
||||||
[GUI] Button _stepButton;
|
[GUI] Button _stepButton;
|
||||||
[GUI] CheckButton _pauseCheckbutton;
|
[GUI] CheckButton _pauseCheckbutton;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
public ProfilerWidget() : this(new Builder("Ryujinx.Debugger.UI.ProfilerWidget.glade")) { }
|
public ProfilerWidget() : this(new Builder("Ryujinx.Debugger.UI.ProfilerWidget.glade")) { }
|
||||||
|
|
||||||
|
@ -287,7 +289,7 @@ namespace Ryujinx.Debugger.UI
|
||||||
_sortedProfileData = _sortedProfileData.Where((pair => filterRegex.IsMatch(pair.Key.Search))).ToList();
|
_sortedProfileData = _sortedProfileData.Where((pair => filterRegex.IsMatch(pair.Key.Search))).ToList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (ArgumentException argException)
|
catch (ArgumentException)
|
||||||
{
|
{
|
||||||
// Skip filtering for invalid regex
|
// Skip filtering for invalid regex
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,9 +81,6 @@ namespace Ryujinx.Graphics.Gpu
|
||||||
|
|
||||||
private DmaState _state;
|
private DmaState _state;
|
||||||
|
|
||||||
private bool _sliEnable;
|
|
||||||
private bool _sliActive;
|
|
||||||
|
|
||||||
private bool _ibEnable;
|
private bool _ibEnable;
|
||||||
|
|
||||||
private GpuContext _context;
|
private GpuContext _context;
|
||||||
|
@ -217,10 +214,7 @@ namespace Ryujinx.Graphics.Gpu
|
||||||
}
|
}
|
||||||
else if (_state.MethodCount != 0)
|
else if (_state.MethodCount != 0)
|
||||||
{
|
{
|
||||||
if (!_sliEnable || _sliActive)
|
CallMethod(word);
|
||||||
{
|
|
||||||
CallMethod(word);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_state.NonIncrementing)
|
if (!_state.NonIncrementing)
|
||||||
{
|
{
|
||||||
|
|
|
@ -790,10 +790,12 @@ namespace Ryujinx.Graphics.Gpu.Engine
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private struct SbDescriptor
|
private struct SbDescriptor
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public uint AddressLow;
|
public uint AddressLow;
|
||||||
public uint AddressHigh;
|
public uint AddressHigh;
|
||||||
public int Size;
|
public int Size;
|
||||||
public int Padding;
|
public int Padding;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
public ulong PackAddress()
|
public ulong PackAddress()
|
||||||
{
|
{
|
||||||
|
|
|
@ -51,6 +51,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||||
|
|
||||||
private const float Frac8ToF32 = 1.0f / 256.0f;
|
private const float Frac8ToF32 = 1.0f / 256.0f;
|
||||||
|
|
||||||
|
#pragma warning disable CS0649
|
||||||
public uint Word0;
|
public uint Word0;
|
||||||
public uint Word1;
|
public uint Word1;
|
||||||
public uint Word2;
|
public uint Word2;
|
||||||
|
@ -59,6 +60,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||||
public float BorderColorG;
|
public float BorderColorG;
|
||||||
public float BorderColorB;
|
public float BorderColorB;
|
||||||
public float BorderColorA;
|
public float BorderColorA;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unpacks the texture wrap mode along the X axis.
|
/// Unpacks the texture wrap mode along the X axis.
|
||||||
|
|
|
@ -5,6 +5,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct TextureDescriptor
|
struct TextureDescriptor
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public uint Word0;
|
public uint Word0;
|
||||||
public uint Word1;
|
public uint Word1;
|
||||||
public uint Word2;
|
public uint Word2;
|
||||||
|
@ -13,6 +14,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||||
public uint Word5;
|
public uint Word5;
|
||||||
public uint Word6;
|
public uint Word6;
|
||||||
public uint Word7;
|
public uint Word7;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unpacks Maxwell texture format integer.
|
/// Unpacks Maxwell texture format integer.
|
||||||
|
|
|
@ -7,12 +7,14 @@ namespace Ryujinx.Graphics.Gpu.Shader
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct ShaderAddresses : IEquatable<ShaderAddresses>
|
struct ShaderAddresses : IEquatable<ShaderAddresses>
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public ulong VertexA;
|
public ulong VertexA;
|
||||||
public ulong Vertex;
|
public ulong Vertex;
|
||||||
public ulong TessControl;
|
public ulong TessControl;
|
||||||
public ulong TessEvaluation;
|
public ulong TessEvaluation;
|
||||||
public ulong Geometry;
|
public ulong Geometry;
|
||||||
public ulong Fragment;
|
public ulong Fragment;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check if the addresses are equal.
|
/// Check if the addresses are equal.
|
||||||
|
|
|
@ -7,6 +7,7 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct BlendState
|
struct BlendState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public Boolean32 SeparateAlpha;
|
public Boolean32 SeparateAlpha;
|
||||||
public BlendOp ColorOp;
|
public BlendOp ColorOp;
|
||||||
public BlendFactor ColorSrcFactor;
|
public BlendFactor ColorSrcFactor;
|
||||||
|
@ -15,5 +16,6 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
public BlendFactor AlphaSrcFactor;
|
public BlendFactor AlphaSrcFactor;
|
||||||
public BlendFactor AlphaDstFactor;
|
public BlendFactor AlphaDstFactor;
|
||||||
public uint Padding;
|
public uint Padding;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct BlendStateCommon
|
struct BlendStateCommon
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public Boolean32 SeparateAlpha;
|
public Boolean32 SeparateAlpha;
|
||||||
public BlendOp ColorOp;
|
public BlendOp ColorOp;
|
||||||
public BlendFactor ColorSrcFactor;
|
public BlendFactor ColorSrcFactor;
|
||||||
|
@ -15,5 +16,6 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
public BlendFactor AlphaSrcFactor;
|
public BlendFactor AlphaSrcFactor;
|
||||||
public uint Unknown0x1354;
|
public uint Unknown0x1354;
|
||||||
public BlendFactor AlphaDstFactor;
|
public BlendFactor AlphaDstFactor;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct Boolean32
|
struct Boolean32
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
private uint _value;
|
private uint _value;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
public static implicit operator bool(Boolean32 value)
|
public static implicit operator bool(Boolean32 value)
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,9 +5,11 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct ClearColors
|
struct ClearColors
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public float Red;
|
public float Red;
|
||||||
public float Green;
|
public float Green;
|
||||||
public float Blue;
|
public float Blue;
|
||||||
public float Alpha;
|
public float Alpha;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct ConditionState
|
struct ConditionState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public GpuVa Address;
|
public GpuVa Address;
|
||||||
public Condition Condition;
|
public Condition Condition;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,11 +5,13 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct CopyBufferParams
|
struct CopyBufferParams
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public GpuVa SrcAddress;
|
public GpuVa SrcAddress;
|
||||||
public GpuVa DstAddress;
|
public GpuVa DstAddress;
|
||||||
public int SrcStride;
|
public int SrcStride;
|
||||||
public int DstStride;
|
public int DstStride;
|
||||||
public int XCount;
|
public int XCount;
|
||||||
public int YCount;
|
public int YCount;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct CopyBufferSwizzle
|
struct CopyBufferSwizzle
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public uint Swizzle;
|
public uint Swizzle;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unpacks the size of each vector component of the copy.
|
/// Unpacks the size of each vector component of the copy.
|
||||||
|
|
|
@ -5,6 +5,7 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct CopyBufferTexture
|
struct CopyBufferTexture
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public MemoryLayout MemoryLayout;
|
public MemoryLayout MemoryLayout;
|
||||||
public int Width;
|
public int Width;
|
||||||
public int Height;
|
public int Height;
|
||||||
|
@ -12,5 +13,6 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
public int RegionZ;
|
public int RegionZ;
|
||||||
public ushort RegionX;
|
public ushort RegionX;
|
||||||
public ushort RegionY;
|
public ushort RegionY;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -5,6 +5,7 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct CopyRegion
|
struct CopyRegion
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public int DstX;
|
public int DstX;
|
||||||
public int DstY;
|
public int DstY;
|
||||||
public int DstWidth;
|
public int DstWidth;
|
||||||
|
@ -13,5 +14,6 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
public long SrcHeightRF;
|
public long SrcHeightRF;
|
||||||
public long SrcXF;
|
public long SrcXF;
|
||||||
public long SrcYF;
|
public long SrcYF;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -5,6 +5,7 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct CopyTexture
|
struct CopyTexture
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public RtFormat Format;
|
public RtFormat Format;
|
||||||
public Boolean32 LinearLayout;
|
public Boolean32 LinearLayout;
|
||||||
public MemoryLayout MemoryLayout;
|
public MemoryLayout MemoryLayout;
|
||||||
|
@ -14,5 +15,6 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
public int Width;
|
public int Width;
|
||||||
public int Height;
|
public int Height;
|
||||||
public GpuVa Address;
|
public GpuVa Address;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct CopyTextureControl
|
struct CopyTextureControl
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public uint Packed;
|
public uint Packed;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
public bool UnpackLinearFilter()
|
public bool UnpackLinearFilter()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,8 +5,10 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct DepthBiasState
|
struct DepthBiasState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public Boolean32 PointEnable;
|
public Boolean32 PointEnable;
|
||||||
public Boolean32 LineEnable;
|
public Boolean32 LineEnable;
|
||||||
public Boolean32 FillEnable;
|
public Boolean32 FillEnable;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,8 +7,10 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct FaceState
|
struct FaceState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public Boolean32 CullEnable;
|
public Boolean32 CullEnable;
|
||||||
public FrontFace FrontFace;
|
public FrontFace FrontFace;
|
||||||
public Face CullFace;
|
public Face CullFace;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,10 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct GpuVa
|
struct GpuVa
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public uint High;
|
public uint High;
|
||||||
public uint Low;
|
public uint Low;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Packs the split address into a 64-bits address value.
|
/// Packs the split address into a 64-bits address value.
|
||||||
|
|
|
@ -8,10 +8,12 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct IndexBufferState
|
struct IndexBufferState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public GpuVa Address;
|
public GpuVa Address;
|
||||||
public GpuVa EndAddress;
|
public GpuVa EndAddress;
|
||||||
public IndexType Type;
|
public IndexType Type;
|
||||||
public int First;
|
public int First;
|
||||||
public int Count;
|
public int Count;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct Inline2MemoryParams
|
struct Inline2MemoryParams
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public int LineLengthIn;
|
public int LineLengthIn;
|
||||||
public int LineCount;
|
public int LineCount;
|
||||||
public GpuVa DstAddress;
|
public GpuVa DstAddress;
|
||||||
|
@ -16,5 +17,6 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
public int DstZ;
|
public int DstZ;
|
||||||
public int DstX;
|
public int DstX;
|
||||||
public int DstY;
|
public int DstY;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct MemoryLayout
|
struct MemoryLayout
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public uint Packed;
|
public uint Packed;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
public int UnpackGobBlocksInX()
|
public int UnpackGobBlocksInX()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct PoolState
|
struct PoolState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public GpuVa Address;
|
public GpuVa Address;
|
||||||
public int MaximumId;
|
public int MaximumId;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct PrimitiveRestartState
|
struct PrimitiveRestartState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public Boolean32 Enable;
|
public Boolean32 Enable;
|
||||||
public int Index;
|
public int Index;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,10 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct ReportState
|
struct ReportState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public GpuVa Address;
|
public GpuVa Address;
|
||||||
public int Payload;
|
public int Payload;
|
||||||
public uint Control;
|
public uint Control;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,9 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct RtColorMask
|
struct RtColorMask
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public uint Packed;
|
public uint Packed;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unpacks red channel enable.
|
/// Unpacks red channel enable.
|
||||||
|
|
|
@ -5,6 +5,7 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct RtColorState
|
struct RtColorState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public GpuVa Address;
|
public GpuVa Address;
|
||||||
public int WidthOrStride;
|
public int WidthOrStride;
|
||||||
public int Height;
|
public int Height;
|
||||||
|
@ -20,5 +21,6 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
public int Padding3;
|
public int Padding3;
|
||||||
public int Padding4;
|
public int Padding4;
|
||||||
public int Padding5;
|
public int Padding5;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct RtControl
|
struct RtControl
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public uint Packed;
|
public uint Packed;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unpacks the number of active draw buffers.
|
/// Unpacks the number of active draw buffers.
|
||||||
|
|
|
@ -5,9 +5,11 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct RtDepthStencilState
|
struct RtDepthStencilState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public GpuVa Address;
|
public GpuVa Address;
|
||||||
public RtFormat Format;
|
public RtFormat Format;
|
||||||
public MemoryLayout MemoryLayout;
|
public MemoryLayout MemoryLayout;
|
||||||
public int LayerSize;
|
public int LayerSize;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,13 @@
|
||||||
{
|
{
|
||||||
struct ScissorState
|
struct ScissorState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public Boolean32 Enable;
|
public Boolean32 Enable;
|
||||||
public ushort X1;
|
public ushort X1;
|
||||||
public ushort X2;
|
public ushort X2;
|
||||||
public ushort Y1;
|
public ushort Y1;
|
||||||
public ushort Y2;
|
public ushort Y2;
|
||||||
public uint Padding;
|
public uint Padding;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct ShaderState
|
struct ShaderState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public uint Control;
|
public uint Control;
|
||||||
public uint Offset;
|
public uint Offset;
|
||||||
public uint Unknown0x8;
|
public uint Unknown0x8;
|
||||||
|
@ -21,6 +22,7 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
public uint Unknown0x34;
|
public uint Unknown0x34;
|
||||||
public uint Unknown0x38;
|
public uint Unknown0x38;
|
||||||
public uint Unknown0x3c;
|
public uint Unknown0x3c;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unpacks shader enable information.
|
/// Unpacks shader enable information.
|
||||||
|
|
|
@ -5,8 +5,10 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct Size3D
|
struct Size3D
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public int Width;
|
public int Width;
|
||||||
public int Height;
|
public int Height;
|
||||||
public int Depth;
|
public int Depth;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,10 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct StencilBackMasks
|
struct StencilBackMasks
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public int FuncRef;
|
public int FuncRef;
|
||||||
public int Mask;
|
public int Mask;
|
||||||
public int FuncMask;
|
public int FuncMask;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,10 +7,12 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct StencilBackTestState
|
struct StencilBackTestState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public Boolean32 TwoSided;
|
public Boolean32 TwoSided;
|
||||||
public StencilOp BackSFail;
|
public StencilOp BackSFail;
|
||||||
public StencilOp BackDpFail;
|
public StencilOp BackDpFail;
|
||||||
public StencilOp BackDpPass;
|
public StencilOp BackDpPass;
|
||||||
public CompareOp BackFunc;
|
public CompareOp BackFunc;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct StencilTestState
|
struct StencilTestState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public Boolean32 Enable;
|
public Boolean32 Enable;
|
||||||
public StencilOp FrontSFail;
|
public StencilOp FrontSFail;
|
||||||
public StencilOp FrontDpFail;
|
public StencilOp FrontDpFail;
|
||||||
|
@ -15,5 +16,6 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
public int FrontFuncRef;
|
public int FrontFuncRef;
|
||||||
public int FrontFuncMask;
|
public int FrontFuncMask;
|
||||||
public int FrontMask;
|
public int FrontMask;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,10 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct UniformBufferState
|
struct UniformBufferState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public int Size;
|
public int Size;
|
||||||
public GpuVa Address;
|
public GpuVa Address;
|
||||||
public int Offset;
|
public int Offset;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct VertexAttribState
|
struct VertexAttribState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public uint Attribute;
|
public uint Attribute;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unpacks the index of the vertex buffer this attribute belongs to.
|
/// Unpacks the index of the vertex buffer this attribute belongs to.
|
||||||
|
|
|
@ -5,7 +5,9 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct VertexBufferDrawState
|
struct VertexBufferDrawState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public int First;
|
public int First;
|
||||||
public int Count;
|
public int Count;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,9 +5,11 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct VertexBufferState
|
struct VertexBufferState
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public uint Control;
|
public uint Control;
|
||||||
public GpuVa Address;
|
public GpuVa Address;
|
||||||
public int Divisor;
|
public int Divisor;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Vertex buffer stride, defined as the number of bytes occupied by each vertex in memory.
|
/// Vertex buffer stride, defined as the number of bytes occupied by each vertex in memory.
|
||||||
|
|
|
@ -5,11 +5,13 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct ViewportExtents
|
struct ViewportExtents
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public ushort X;
|
public ushort X;
|
||||||
public ushort Width;
|
public ushort Width;
|
||||||
public ushort Y;
|
public ushort Y;
|
||||||
public ushort Height;
|
public ushort Height;
|
||||||
public float DepthNear;
|
public float DepthNear;
|
||||||
public float DepthFar;
|
public float DepthFar;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
/// </summary>
|
/// </summary>
|
||||||
struct ViewportTransform
|
struct ViewportTransform
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public float ScaleX;
|
public float ScaleX;
|
||||||
public float ScaleY;
|
public float ScaleY;
|
||||||
public float ScaleZ;
|
public float ScaleZ;
|
||||||
|
@ -15,6 +16,7 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||||
public float TranslateZ;
|
public float TranslateZ;
|
||||||
public uint Swizzle;
|
public uint Swizzle;
|
||||||
public uint SubpixelPrecisionBias;
|
public uint SubpixelPrecisionBias;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unpacks viewport swizzle of the position X component.
|
/// Unpacks viewport swizzle of the position X component.
|
||||||
|
|
|
@ -114,7 +114,9 @@ namespace Ryujinx.HLE.HOS
|
||||||
|
|
||||||
public Keyset KeySet => Device.FileSystem.KeySet;
|
public Keyset KeySet => Device.FileSystem.KeySet;
|
||||||
|
|
||||||
|
#pragma warning disable CS0649
|
||||||
private bool _hasStarted;
|
private bool _hasStarted;
|
||||||
|
#pragma warning restore CS0649
|
||||||
private bool _isDisposed;
|
private bool _isDisposed;
|
||||||
|
|
||||||
public BlitStruct<ApplicationControlProperty> ControlData { get; set; }
|
public BlitStruct<ApplicationControlProperty> ControlData { get; set; }
|
||||||
|
|
|
@ -7,14 +7,10 @@ namespace Ryujinx.HLE.HOS.Kernel.Ipc
|
||||||
public KLightServerSession ServerSession { get; }
|
public KLightServerSession ServerSession { get; }
|
||||||
public KLightClientSession ClientSession { get; }
|
public KLightClientSession ClientSession { get; }
|
||||||
|
|
||||||
private bool _hasBeenInitialized;
|
|
||||||
|
|
||||||
public KLightSession(Horizon system) : base(system)
|
public KLightSession(Horizon system) : base(system)
|
||||||
{
|
{
|
||||||
ServerSession = new KLightServerSession(system, this);
|
ServerSession = new KLightServerSession(system, this);
|
||||||
ClientSession = new KLightClientSession(system, this);
|
ClientSession = new KLightClientSession(system, this);
|
||||||
|
|
||||||
_hasBeenInitialized = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -64,6 +64,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory
|
||||||
public int AddrSpaceWidth { get; private set; }
|
public int AddrSpaceWidth { get; private set; }
|
||||||
|
|
||||||
private bool _isKernel;
|
private bool _isKernel;
|
||||||
|
|
||||||
private bool _aslrEnabled;
|
private bool _aslrEnabled;
|
||||||
|
|
||||||
private KMemoryBlockAllocator _blockAllocator;
|
private KMemoryBlockAllocator _blockAllocator;
|
||||||
|
@ -78,6 +79,8 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory
|
||||||
_cpuMemory = cpuMemory;
|
_cpuMemory = cpuMemory;
|
||||||
|
|
||||||
_blocks = new LinkedList<KMemoryBlock>();
|
_blocks = new LinkedList<KMemoryBlock>();
|
||||||
|
|
||||||
|
_isKernel = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static readonly int[] AddrSpaceSizes = new int[] { 32, 36, 32, 39 };
|
private static readonly int[] AddrSpaceSizes = new int[] { 32, 36, 32, 39 };
|
||||||
|
|
|
@ -66,7 +66,9 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
|
||||||
|
|
||||||
private long _affinityMaskOverride;
|
private long _affinityMaskOverride;
|
||||||
private int _preferredCoreOverride;
|
private int _preferredCoreOverride;
|
||||||
|
#pragma warning disable CS0649
|
||||||
private int _affinityOverrideCount;
|
private int _affinityOverrideCount;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
public ThreadSchedState SchedFlags { get; private set; }
|
public ThreadSchedState SchedFlags { get; private set; }
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,9 @@ namespace Ryujinx.HLE.HOS.Services.Arp
|
||||||
public int Version;
|
public int Version;
|
||||||
public byte BaseGameStorageId;
|
public byte BaseGameStorageId;
|
||||||
public byte UpdateGameStorageId;
|
public byte UpdateGameStorageId;
|
||||||
|
#pragma warning disable CS0649
|
||||||
public short Padding;
|
public short Padding;
|
||||||
|
#pragma warning restore CS0649
|
||||||
|
|
||||||
public static ApplicationLaunchProperty Default
|
public static ApplicationLaunchProperty Default
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
struct UpdateDataHeader
|
struct UpdateDataHeader
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public int Revision;
|
public int Revision;
|
||||||
public int BehaviorSize;
|
public int BehaviorSize;
|
||||||
public int MemoryPoolSize;
|
public int MemoryPoolSize;
|
||||||
|
@ -18,5 +19,6 @@
|
||||||
public int Unknown34;
|
public int Unknown34;
|
||||||
public int Unknown38;
|
public int Unknown38;
|
||||||
public int TotalSize;
|
public int TotalSize;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -9,7 +9,9 @@ namespace Ryujinx.HLE.HOS.Services.Bluetooth
|
||||||
[Service("btdrv")]
|
[Service("btdrv")]
|
||||||
class IBluetoothDriver : IpcService
|
class IBluetoothDriver : IpcService
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0169
|
||||||
private string _unknownLowEnergy;
|
private string _unknownLowEnergy;
|
||||||
|
#pragma warning restore CS0169
|
||||||
|
|
||||||
public IBluetoothDriver(ServiceCtx context) { }
|
public IBluetoothDriver(ServiceCtx context) { }
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,9 @@ namespace Ryujinx.HLE.HOS.Services.Hid
|
||||||
|
|
||||||
private long _npadCommunicationMode;
|
private long _npadCommunicationMode;
|
||||||
private uint _accelerometerPlayMode;
|
private uint _accelerometerPlayMode;
|
||||||
|
#pragma warning disable CS0649
|
||||||
private long _vibrationGcErmCommand;
|
private long _vibrationGcErmCommand;
|
||||||
|
#pragma warning restore CS0649
|
||||||
private float _sevenSixAxisSensorFusionStrength;
|
private float _sevenSixAxisSensorFusionStrength;
|
||||||
|
|
||||||
private HidSensorFusionParameters _sensorFusionParams;
|
private HidSensorFusionParameters _sensorFusionParams;
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
using Ryujinx.Common;
|
using Ryujinx.Common.Logging;
|
||||||
using Ryujinx.Common.Logging;
|
|
||||||
using Ryujinx.Graphics.Gpu.Memory;
|
using Ryujinx.Graphics.Gpu.Memory;
|
||||||
using Ryujinx.HLE.HOS.Kernel.Process;
|
using Ryujinx.HLE.HOS.Kernel.Process;
|
||||||
using Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostAsGpu.Types;
|
using Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostAsGpu.Types;
|
||||||
using Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvMap;
|
using Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvMap;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
using System.Diagnostics;
|
|
||||||
|
|
||||||
namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostAsGpu
|
namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostAsGpu
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
{
|
{
|
||||||
struct UnmapBufferArguments
|
struct UnmapBufferArguments
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public long Offset;
|
public long Offset;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,10 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostChannel
|
||||||
{
|
{
|
||||||
class NvChannel
|
class NvChannel
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public int Timeout;
|
public int Timeout;
|
||||||
public int SubmitTimeout;
|
public int SubmitTimeout;
|
||||||
public int Timeslice;
|
public int Timeslice;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,6 +1,5 @@
|
||||||
using Ryujinx.Common.Logging;
|
using Ryujinx.Common.Logging;
|
||||||
using Ryujinx.HLE.HOS.Kernel.Common;
|
using Ryujinx.HLE.HOS.Kernel.Common;
|
||||||
using Ryujinx.HLE.HOS.Kernel.Process;
|
|
||||||
using Ryujinx.HLE.HOS.Kernel.Threading;
|
using Ryujinx.HLE.HOS.Kernel.Threading;
|
||||||
using Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostCtrlGpu.Types;
|
using Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostCtrlGpu.Types;
|
||||||
using System;
|
using System;
|
||||||
|
|
|
@ -44,8 +44,10 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostCtrlGpu.Types
|
||||||
|
|
||||||
struct CharacteristicsHeader
|
struct CharacteristicsHeader
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public long BufferSize;
|
public long BufferSize;
|
||||||
public long BufferAddress;
|
public long BufferAddress;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
|
|
|
@ -4,8 +4,10 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvMap
|
||||||
{
|
{
|
||||||
class NvMapHandle
|
class NvMapHandle
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public int Handle;
|
public int Handle;
|
||||||
public int Id;
|
public int Id;
|
||||||
|
#pragma warning restore CS0649
|
||||||
public int Size;
|
public int Size;
|
||||||
public int Align;
|
public int Align;
|
||||||
public int Kind;
|
public int Kind;
|
||||||
|
|
|
@ -2,11 +2,13 @@
|
||||||
{
|
{
|
||||||
struct ElfSymbol32
|
struct ElfSymbol32
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public uint NameOffset;
|
public uint NameOffset;
|
||||||
public uint ValueAddress;
|
public uint ValueAddress;
|
||||||
public uint Size;
|
public uint Size;
|
||||||
public char Info;
|
public char Info;
|
||||||
public char Other;
|
public char Other;
|
||||||
public ushort SectionIndex;
|
public ushort SectionIndex;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,13 @@
|
||||||
{
|
{
|
||||||
struct ElfSymbol64
|
struct ElfSymbol64
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0649
|
||||||
public uint NameOffset;
|
public uint NameOffset;
|
||||||
public char Info;
|
public char Info;
|
||||||
public char Other;
|
public char Other;
|
||||||
public ushort SectionIndex;
|
public ushort SectionIndex;
|
||||||
public ulong ValueAddress;
|
public ulong ValueAddress;
|
||||||
public ulong Size;
|
public ulong Size;
|
||||||
|
#pragma warning restore CS0649
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,8 +34,6 @@ namespace Ryujinx.HLE
|
||||||
|
|
||||||
public AutoResetEvent VsyncEvent { get; private set; }
|
public AutoResetEvent VsyncEvent { get; private set; }
|
||||||
|
|
||||||
public event EventHandler Finish;
|
|
||||||
|
|
||||||
public Switch(VirtualFileSystem fileSystem, ContentManager contentManager, IRenderer renderer, IAalOutput audioOut)
|
public Switch(VirtualFileSystem fileSystem, ContentManager contentManager, IRenderer renderer, IAalOutput audioOut)
|
||||||
{
|
{
|
||||||
if (renderer == null)
|
if (renderer == null)
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace Ryujinx.HLE.Utilities
|
||||||
|
|
||||||
public static byte[] DecryptFont(Stream bfttfStream)
|
public static byte[] DecryptFont(Stream bfttfStream)
|
||||||
{
|
{
|
||||||
uint KXor(uint In) => In ^ 0x06186249;
|
uint KXor(uint In) => In ^ FontKey;
|
||||||
|
|
||||||
using (BinaryReader reader = new BinaryReader(bfttfStream))
|
using (BinaryReader reader = new BinaryReader(bfttfStream))
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
using Gtk;
|
using Gtk;
|
||||||
using JsonPrettyPrinterPlus;
|
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
using LibHac.Ns;
|
using LibHac.Ns;
|
||||||
using Ryujinx.Audio;
|
using Ryujinx.Audio;
|
||||||
|
@ -12,15 +11,11 @@ using Ryujinx.HLE.FileSystem;
|
||||||
using Ryujinx.HLE.FileSystem.Content;
|
using Ryujinx.HLE.FileSystem.Content;
|
||||||
using Ryujinx.HLE.HOS.Services.Hid;
|
using Ryujinx.HLE.HOS.Services.Hid;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Utf8Json;
|
|
||||||
using Utf8Json.Resolvers;
|
|
||||||
|
|
||||||
using GUI = Gtk.Builder.ObjectAttribute;
|
using GUI = Gtk.Builder.ObjectAttribute;
|
||||||
|
|
||||||
|
@ -42,14 +37,17 @@ namespace Ryujinx.Ui
|
||||||
private static bool _updatingGameTable;
|
private static bool _updatingGameTable;
|
||||||
private static bool _gameLoaded;
|
private static bool _gameLoaded;
|
||||||
private static bool _ending;
|
private static bool _ending;
|
||||||
|
#pragma warning disable CS0169
|
||||||
private static bool _debuggerOpened;
|
private static bool _debuggerOpened;
|
||||||
|
#pragma warning restore CS0169
|
||||||
|
|
||||||
private static TreeView _treeView;
|
private static TreeView _treeView;
|
||||||
|
|
||||||
|
#pragma warning disable CS0169
|
||||||
private static Ryujinx.Debugger.Debugger _debugger;
|
private static Ryujinx.Debugger.Debugger _debugger;
|
||||||
|
#pragma warning restore CS0169
|
||||||
|
|
||||||
#pragma warning disable CS0649
|
#pragma warning disable CS0169, CS0649, IDE0044
|
||||||
#pragma warning disable IDE0044
|
|
||||||
|
|
||||||
[GUI] Window _mainWin;
|
[GUI] Window _mainWin;
|
||||||
[GUI] MenuBar _menuBar;
|
[GUI] MenuBar _menuBar;
|
||||||
|
@ -83,8 +81,7 @@ namespace Ryujinx.Ui
|
||||||
[GUI] Label _vSyncStatus;
|
[GUI] Label _vSyncStatus;
|
||||||
[GUI] Box _listStatusBox;
|
[GUI] Box _listStatusBox;
|
||||||
|
|
||||||
#pragma warning restore CS0649
|
#pragma warning restore CS0649, IDE0044, CS0169
|
||||||
#pragma warning restore IDE0044
|
|
||||||
|
|
||||||
public MainWindow() : this(new Builder("Ryujinx.Ui.MainWindow.glade")) { }
|
public MainWindow() : this(new Builder("Ryujinx.Ui.MainWindow.glade")) { }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue