Remove unneeded property setters
This commit is contained in:
parent
2063d4c90f
commit
695e1da0f4
62 changed files with 251 additions and 251 deletions
|
@ -7,7 +7,7 @@ namespace Ryujinx.HLE
|
||||||
{
|
{
|
||||||
public const long RamSize = 4L * 1024 * 1024 * 1024;
|
public const long RamSize = 4L * 1024 * 1024 * 1024;
|
||||||
|
|
||||||
public IntPtr RamPointer { get; private set; }
|
public IntPtr RamPointer { get; }
|
||||||
|
|
||||||
private unsafe byte* _ramPtr;
|
private unsafe byte* _ramPtr;
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,10 @@ namespace Ryujinx.HLE.FileSystem.Content
|
||||||
{
|
{
|
||||||
public struct LocationEntry
|
public struct LocationEntry
|
||||||
{
|
{
|
||||||
public string ContentPath { get; private set; }
|
public string ContentPath { get; }
|
||||||
public int Flag { get; private set; }
|
public int Flag { get; private set; }
|
||||||
public long TitleId { get; private set; }
|
public long TitleId { get; }
|
||||||
public ContentType ContentType { get; private set; }
|
public ContentType ContentType { get; }
|
||||||
|
|
||||||
public LocationEntry(string contentPath, int flag, long titleId, ContentType contentType)
|
public LocationEntry(string contentPath, int flag, long titleId, ContentType contentType)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,12 +4,12 @@ namespace Ryujinx.HLE.FileSystem
|
||||||
{
|
{
|
||||||
struct SaveInfo
|
struct SaveInfo
|
||||||
{
|
{
|
||||||
public long TitleId { get; private set; }
|
public long TitleId { get; }
|
||||||
public long SaveId { get; private set; }
|
public long SaveId { get; }
|
||||||
public UInt128 UserId { get; private set; }
|
public UInt128 UserId { get; }
|
||||||
|
|
||||||
public SaveDataType SaveDataType { get; private set; }
|
public SaveDataType SaveDataType { get; }
|
||||||
public SaveSpaceId SaveSpaceId { get; private set; }
|
public SaveSpaceId SaveSpaceId { get; }
|
||||||
|
|
||||||
public SaveInfo(
|
public SaveInfo(
|
||||||
long titleId,
|
long titleId,
|
||||||
|
|
|
@ -2,7 +2,7 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
{
|
{
|
||||||
public abstract class ParentNode : BaseNode
|
public abstract class ParentNode : BaseNode
|
||||||
{
|
{
|
||||||
public BaseNode Child { get; private set; }
|
public BaseNode Child { get; }
|
||||||
|
|
||||||
public ParentNode(NodeType type, BaseNode child) : base(type)
|
public ParentNode(NodeType type, BaseNode child) : base(type)
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler
|
||||||
|
|
||||||
private List<ForwardTemplateReference> _forwardTemplateReferenceList = new List<ForwardTemplateReference>();
|
private List<ForwardTemplateReference> _forwardTemplateReferenceList = new List<ForwardTemplateReference>();
|
||||||
|
|
||||||
public string Mangled { get; private set; }
|
public string Mangled { get; }
|
||||||
|
|
||||||
private int _position;
|
private int _position;
|
||||||
private int _length;
|
private int _length;
|
||||||
|
|
|
@ -35,30 +35,30 @@ namespace Ryujinx.HLE.HOS
|
||||||
internal long PrivilegedProcessLowestId { get; set; } = 1;
|
internal long PrivilegedProcessLowestId { get; set; } = 1;
|
||||||
internal long PrivilegedProcessHighestId { get; set; } = 8;
|
internal long PrivilegedProcessHighestId { get; set; } = 8;
|
||||||
|
|
||||||
internal Switch Device { get; private set; }
|
internal Switch Device { get; }
|
||||||
|
|
||||||
public SystemStateMgr State { get; private set; }
|
public SystemStateMgr State { get; }
|
||||||
|
|
||||||
internal bool KernelInitialized { get; private set; }
|
internal bool KernelInitialized { get; }
|
||||||
|
|
||||||
internal KResourceLimit ResourceLimit { get; private set; }
|
internal KResourceLimit ResourceLimit { get; }
|
||||||
|
|
||||||
internal KMemoryRegionManager[] MemoryRegions { get; private set; }
|
internal KMemoryRegionManager[] MemoryRegions { get; }
|
||||||
|
|
||||||
internal KMemoryBlockAllocator LargeMemoryBlockAllocator { get; private set; }
|
internal KMemoryBlockAllocator LargeMemoryBlockAllocator { get; }
|
||||||
internal KMemoryBlockAllocator SmallMemoryBlockAllocator { get; private set; }
|
internal KMemoryBlockAllocator SmallMemoryBlockAllocator { get; }
|
||||||
|
|
||||||
internal KSlabHeap UserSlabHeapPages { get; private set; }
|
internal KSlabHeap UserSlabHeapPages { get; }
|
||||||
|
|
||||||
internal KCriticalSection CriticalSection { get; private set; }
|
internal KCriticalSection CriticalSection { get; }
|
||||||
|
|
||||||
internal KScheduler Scheduler { get; private set; }
|
internal KScheduler Scheduler { get; }
|
||||||
|
|
||||||
internal KTimeManager TimeManager { get; private set; }
|
internal KTimeManager TimeManager { get; }
|
||||||
|
|
||||||
internal KSynchronization Synchronization { get; private set; }
|
internal KSynchronization Synchronization { get; }
|
||||||
|
|
||||||
internal KContextIdManager ContextIdManager { get; private set; }
|
internal KContextIdManager ContextIdManager { get; }
|
||||||
|
|
||||||
private long _kipId;
|
private long _kipId;
|
||||||
private long _processId;
|
private long _processId;
|
||||||
|
@ -72,16 +72,16 @@ namespace Ryujinx.HLE.HOS
|
||||||
|
|
||||||
internal bool EnableVersionChecks { get; private set; }
|
internal bool EnableVersionChecks { get; private set; }
|
||||||
|
|
||||||
internal AppletStateMgr AppletState { get; private set; }
|
internal AppletStateMgr AppletState { get; }
|
||||||
|
|
||||||
internal KSharedMemory HidSharedMem { get; private set; }
|
internal KSharedMemory HidSharedMem { get; }
|
||||||
internal KSharedMemory FontSharedMem { get; private set; }
|
internal KSharedMemory FontSharedMem { get; }
|
||||||
|
|
||||||
internal SharedFontManager Font { get; private set; }
|
internal SharedFontManager Font { get; }
|
||||||
|
|
||||||
internal ContentManager ContentManager { get; private set; }
|
internal ContentManager ContentManager { get; }
|
||||||
|
|
||||||
internal KEvent VsyncEvent { get; private set; }
|
internal KEvent VsyncEvent { get; }
|
||||||
|
|
||||||
internal Keyset KeySet { get; private set; }
|
internal Keyset KeySet { get; private set; }
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ namespace Ryujinx.HLE.HOS
|
||||||
|
|
||||||
public IntegrityCheckLevel FsIntegrityCheckLevel { get; set; }
|
public IntegrityCheckLevel FsIntegrityCheckLevel { get; set; }
|
||||||
|
|
||||||
internal long HidBaseAddress { get; private set; }
|
internal long HidBaseAddress { get; }
|
||||||
|
|
||||||
public Horizon(Switch device)
|
public Horizon(Switch device)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,9 +4,9 @@ namespace Ryujinx.HLE.HOS.Ipc
|
||||||
{
|
{
|
||||||
struct IpcBuffDesc
|
struct IpcBuffDesc
|
||||||
{
|
{
|
||||||
public long Position { get; private set; }
|
public long Position { get; }
|
||||||
public long Size { get; private set; }
|
public long Size { get; }
|
||||||
public int Flags { get; private set; }
|
public int Flags { get; }
|
||||||
|
|
||||||
public IpcBuffDesc(BinaryReader reader)
|
public IpcBuffDesc(BinaryReader reader)
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,12 +5,12 @@ namespace Ryujinx.HLE.HOS.Ipc
|
||||||
{
|
{
|
||||||
class IpcHandleDesc
|
class IpcHandleDesc
|
||||||
{
|
{
|
||||||
public bool HasPId { get; private set; }
|
public bool HasPId { get; }
|
||||||
|
|
||||||
public long PId { get; private set; }
|
public long PId { get; }
|
||||||
|
|
||||||
public int[] ToCopy { get; private set; }
|
public int[] ToCopy { get; }
|
||||||
public int[] ToMove { get; private set; }
|
public int[] ToMove { get; }
|
||||||
|
|
||||||
public IpcHandleDesc(BinaryReader reader)
|
public IpcHandleDesc(BinaryReader reader)
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,13 +9,13 @@ namespace Ryujinx.HLE.HOS.Ipc
|
||||||
|
|
||||||
public IpcHandleDesc HandleDesc { get; set; }
|
public IpcHandleDesc HandleDesc { get; set; }
|
||||||
|
|
||||||
public List<IpcPtrBuffDesc> PtrBuff { get; private set; }
|
public List<IpcPtrBuffDesc> PtrBuff { get; }
|
||||||
public List<IpcBuffDesc> SendBuff { get; private set; }
|
public List<IpcBuffDesc> SendBuff { get; }
|
||||||
public List<IpcBuffDesc> ReceiveBuff { get; private set; }
|
public List<IpcBuffDesc> ReceiveBuff { get; }
|
||||||
public List<IpcBuffDesc> ExchangeBuff { get; private set; }
|
public List<IpcBuffDesc> ExchangeBuff { get; }
|
||||||
public List<IpcRecvListBuffDesc> RecvListBuff { get; private set; }
|
public List<IpcRecvListBuffDesc> RecvListBuff { get; }
|
||||||
|
|
||||||
public List<int> ObjectIds { get; private set; }
|
public List<int> ObjectIds { get; }
|
||||||
|
|
||||||
public byte[] RawData { get; set; }
|
public byte[] RawData { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@ namespace Ryujinx.HLE.HOS.Ipc
|
||||||
{
|
{
|
||||||
struct IpcPtrBuffDesc
|
struct IpcPtrBuffDesc
|
||||||
{
|
{
|
||||||
public long Position { get; private set; }
|
public long Position { get; }
|
||||||
public int Index { get; private set; }
|
public int Index { get; }
|
||||||
public long Size { get; private set; }
|
public long Size { get; }
|
||||||
|
|
||||||
public IpcPtrBuffDesc(BinaryReader reader)
|
public IpcPtrBuffDesc(BinaryReader reader)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,8 +4,8 @@ namespace Ryujinx.HLE.HOS.Ipc
|
||||||
{
|
{
|
||||||
struct IpcRecvListBuffDesc
|
struct IpcRecvListBuffDesc
|
||||||
{
|
{
|
||||||
public long Position { get; private set; }
|
public long Position { get; }
|
||||||
public long Size { get; private set; }
|
public long Size { get; }
|
||||||
|
|
||||||
public IpcRecvListBuffDesc(BinaryReader reader)
|
public IpcRecvListBuffDesc(BinaryReader reader)
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,7 +7,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
private class PausableThread
|
private class PausableThread
|
||||||
{
|
{
|
||||||
public ManualResetEvent Event { get; private set; }
|
public ManualResetEvent Event { get; }
|
||||||
|
|
||||||
public bool IsExiting { get; set; }
|
public bool IsExiting { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -18,9 +18,9 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
|
|
||||||
private class Image
|
private class Image
|
||||||
{
|
{
|
||||||
public long BaseAddress { get; private set; }
|
public long BaseAddress { get; }
|
||||||
|
|
||||||
public ElfSymbol[] Symbols { get; private set; }
|
public ElfSymbol[] Symbols { get; }
|
||||||
|
|
||||||
public Image(long baseAddress, ElfSymbol[] symbols)
|
public Image(long baseAddress, ElfSymbol[] symbols)
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
|
|
||||||
public bool MultiCoreScheduling { get; set; }
|
public bool MultiCoreScheduling { get; set; }
|
||||||
|
|
||||||
public HleCoreManager CoreManager { get; private set; }
|
public HleCoreManager CoreManager { get; }
|
||||||
|
|
||||||
private bool _keepPreempting;
|
private bool _keepPreempting;
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
private Horizon _system;
|
private Horizon _system;
|
||||||
|
|
||||||
public object LockObj { get; private set; }
|
public object LockObj { get; }
|
||||||
|
|
||||||
private int _recursionCount;
|
private int _recursionCount;
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
class KEvent
|
class KEvent
|
||||||
{
|
{
|
||||||
public KReadableEvent ReadableEvent { get; private set; }
|
public KReadableEvent ReadableEvent { get; }
|
||||||
public KWritableEvent WritableEvent { get; private set; }
|
public KWritableEvent WritableEvent { get; }
|
||||||
|
|
||||||
public KEvent(Horizon system)
|
public KEvent(Horizon system)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
public KHandleEntry Next { get; set; }
|
public KHandleEntry Next { get; set; }
|
||||||
|
|
||||||
public int Index { get; private set; }
|
public int Index { get; }
|
||||||
|
|
||||||
public ushort HandleId { get; set; }
|
public ushort HandleId { get; set; }
|
||||||
public object Obj { get; set; }
|
public object Obj { get; set; }
|
||||||
|
|
|
@ -2,10 +2,10 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
class KMemoryArrange
|
class KMemoryArrange
|
||||||
{
|
{
|
||||||
public KMemoryArrangeRegion Service { get; private set; }
|
public KMemoryArrangeRegion Service { get; }
|
||||||
public KMemoryArrangeRegion NvServices { get; private set; }
|
public KMemoryArrangeRegion NvServices { get; }
|
||||||
public KMemoryArrangeRegion Applet { get; private set; }
|
public KMemoryArrangeRegion Applet { get; }
|
||||||
public KMemoryArrangeRegion Application { get; private set; }
|
public KMemoryArrangeRegion Application { get; }
|
||||||
|
|
||||||
public KMemoryArrange(
|
public KMemoryArrange(
|
||||||
KMemoryArrangeRegion service,
|
KMemoryArrangeRegion service,
|
||||||
|
|
|
@ -2,8 +2,8 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
struct KMemoryArrangeRegion
|
struct KMemoryArrangeRegion
|
||||||
{
|
{
|
||||||
public ulong Address { get; private set; }
|
public ulong Address { get; }
|
||||||
public ulong Size { get; private set; }
|
public ulong Size { get; }
|
||||||
|
|
||||||
public ulong EndAddr => Address + Size;
|
public ulong EndAddr => Address + Size;
|
||||||
|
|
||||||
|
|
|
@ -2,15 +2,15 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
class KMemoryInfo
|
class KMemoryInfo
|
||||||
{
|
{
|
||||||
public ulong Address { get; private set; }
|
public ulong Address { get; }
|
||||||
public ulong Size { get; private set; }
|
public ulong Size { get; }
|
||||||
|
|
||||||
public MemoryState State { get; private set; }
|
public MemoryState State { get; }
|
||||||
public MemoryPermission Permission { get; private set; }
|
public MemoryPermission Permission { get; }
|
||||||
public MemoryAttribute Attribute { get; private set; }
|
public MemoryAttribute Attribute { get; }
|
||||||
|
|
||||||
public int IpcRefCount { get; private set; }
|
public int IpcRefCount { get; }
|
||||||
public int DeviceRefCount { get; private set; }
|
public int DeviceRefCount { get; }
|
||||||
|
|
||||||
public KMemoryInfo(
|
public KMemoryInfo(
|
||||||
ulong address,
|
ulong address,
|
||||||
|
|
|
@ -6,9 +6,9 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
private static readonly int[] BlockOrders = new int[] { 12, 16, 21, 22, 25, 29, 30 };
|
private static readonly int[] BlockOrders = new int[] { 12, 16, 21, 22, 25, 29, 30 };
|
||||||
|
|
||||||
public ulong Address { get; private set; }
|
public ulong Address { get; }
|
||||||
public ulong EndAddr { get; private set; }
|
public ulong EndAddr { get; }
|
||||||
public ulong Size { get; private set; }
|
public ulong Size { get; }
|
||||||
|
|
||||||
private int _blockOrdersCount;
|
private int _blockOrdersCount;
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
class KPageList : IEnumerable<KPageNode>
|
class KPageList : IEnumerable<KPageNode>
|
||||||
{
|
{
|
||||||
public LinkedList<KPageNode> Nodes { get; private set; }
|
public LinkedList<KPageNode> Nodes { get; }
|
||||||
|
|
||||||
public KPageList()
|
public KPageList()
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,8 +2,8 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
class KPort : KAutoObject
|
class KPort : KAutoObject
|
||||||
{
|
{
|
||||||
public KServerPort ServerPort { get; private set; }
|
public KServerPort ServerPort { get; }
|
||||||
public KClientPort ClientPort { get; private set; }
|
public KClientPort ClientPort { get; }
|
||||||
|
|
||||||
private long _nameAddress;
|
private long _nameAddress;
|
||||||
private bool _isLight;
|
private bool _isLight;
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
(KernelVersionMinor << 15) |
|
(KernelVersionMinor << 15) |
|
||||||
(KernelVersionRevision << 0);
|
(KernelVersionRevision << 0);
|
||||||
|
|
||||||
public KMemoryManager MemoryManager { get; private set; }
|
public KMemoryManager MemoryManager { get; }
|
||||||
|
|
||||||
private SortedDictionary<ulong, KTlsPageInfo> _fullTlsPages;
|
private SortedDictionary<ulong, KTlsPageInfo> _fullTlsPages;
|
||||||
private SortedDictionary<ulong, KTlsPageInfo> _freeTlsPages;
|
private SortedDictionary<ulong, KTlsPageInfo> _freeTlsPages;
|
||||||
|
@ -39,9 +39,9 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
private object _processLock;
|
private object _processLock;
|
||||||
private object _threadingLock;
|
private object _threadingLock;
|
||||||
|
|
||||||
public KAddressArbiter AddressArbiter { get; private set; }
|
public KAddressArbiter AddressArbiter { get; }
|
||||||
|
|
||||||
public long[] RandomEntropy { get; private set; }
|
public long[] RandomEntropy { get; }
|
||||||
|
|
||||||
private bool _signaled;
|
private bool _signaled;
|
||||||
private bool _useSystemMemBlocks;
|
private bool _useSystemMemBlocks;
|
||||||
|
@ -54,7 +54,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
|
|
||||||
private MemoryRegion _memRegion;
|
private MemoryRegion _memRegion;
|
||||||
|
|
||||||
public KProcessCapabilities Capabilities { get; private set; }
|
public KProcessCapabilities Capabilities { get; }
|
||||||
|
|
||||||
public long TitleId { get; private set; }
|
public long TitleId { get; private set; }
|
||||||
public long Pid { get; private set; }
|
public long Pid { get; private set; }
|
||||||
|
@ -74,13 +74,13 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
|
|
||||||
public bool IsPaused { get; private set; }
|
public bool IsPaused { get; private set; }
|
||||||
|
|
||||||
public Translator Translator { get; private set; }
|
public Translator Translator { get; }
|
||||||
|
|
||||||
public MemoryManager CpuMemory { get; private set; }
|
public MemoryManager CpuMemory { get; }
|
||||||
|
|
||||||
private SvcHandler _svcHandler;
|
private SvcHandler _svcHandler;
|
||||||
|
|
||||||
public HleProcessDebugger Debugger { get; private set; }
|
public HleProcessDebugger Debugger { get; }
|
||||||
|
|
||||||
public KProcess(Horizon system) : base(system)
|
public KProcess(Horizon system) : base(system)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,8 +4,8 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
class KProcessCapabilities
|
class KProcessCapabilities
|
||||||
{
|
{
|
||||||
public byte[] SvcAccessMask { get; private set; }
|
public byte[] SvcAccessMask { get; }
|
||||||
public byte[] IrqAccessMask { get; private set; }
|
public byte[] IrqAccessMask { get; }
|
||||||
|
|
||||||
public long AllowedCpuCoresMask { get; private set; }
|
public long AllowedCpuCoresMask { get; private set; }
|
||||||
public long AllowedThreadPriosMask { get; private set; }
|
public long AllowedThreadPriosMask { get; private set; }
|
||||||
|
|
|
@ -14,9 +14,9 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
|
|
||||||
private Horizon _system;
|
private Horizon _system;
|
||||||
|
|
||||||
public KSchedulingData SchedulingData { get; private set; }
|
public KSchedulingData SchedulingData { get; }
|
||||||
|
|
||||||
public KCoreContext[] CoreContexts { get; private set; }
|
public KCoreContext[] CoreContexts { get; }
|
||||||
|
|
||||||
public bool ThreadReselectionRequested { get; set; }
|
public bool ThreadReselectionRequested { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,9 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
class KSession : IDisposable
|
class KSession : IDisposable
|
||||||
{
|
{
|
||||||
public IpcService Service { get; private set; }
|
public IpcService Service { get; }
|
||||||
|
|
||||||
public string ServiceName { get; private set; }
|
public string ServiceName { get; }
|
||||||
|
|
||||||
public KSession(IpcService service, string serviceName)
|
public KSession(IpcService service, string serviceName)
|
||||||
{
|
{
|
||||||
|
|
|
@ -32,7 +32,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
|
|
||||||
public long LastScheduledTime { get; set; }
|
public long LastScheduledTime { get; set; }
|
||||||
|
|
||||||
public LinkedListNode<KThread>[] SiblingsPerCore { get; private set; }
|
public LinkedListNode<KThread>[] SiblingsPerCore { get; }
|
||||||
|
|
||||||
public LinkedList<KThread> Withholder { get; set; }
|
public LinkedList<KThread> Withholder { get; set; }
|
||||||
public LinkedListNode<KThread> WithholderNode { get; set; }
|
public LinkedListNode<KThread> WithholderNode { get; set; }
|
||||||
|
|
|
@ -10,9 +10,9 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
private class WaitingObject
|
private class WaitingObject
|
||||||
{
|
{
|
||||||
public IKFutureSchedulerObject Object { get; private set; }
|
public IKFutureSchedulerObject Object { get; }
|
||||||
|
|
||||||
public long TimePoint { get; private set; }
|
public long TimePoint { get; }
|
||||||
|
|
||||||
public WaitingObject(IKFutureSchedulerObject schedulerObj, long timePoint)
|
public WaitingObject(IKFutureSchedulerObject schedulerObj, long timePoint)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
public const int TlsEntrySize = 0x200;
|
public const int TlsEntrySize = 0x200;
|
||||||
|
|
||||||
public ulong PageAddr { get; private set; }
|
public ulong PageAddr { get; }
|
||||||
|
|
||||||
private bool[] _isSlotFree;
|
private bool[] _isSlotFree;
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
class KTransferMemory
|
class KTransferMemory
|
||||||
{
|
{
|
||||||
public ulong Address { get; private set; }
|
public ulong Address { get; }
|
||||||
public ulong Size { get; private set; }
|
public ulong Size { get; }
|
||||||
|
|
||||||
public KTransferMemory(ulong address, ulong size)
|
public KTransferMemory(ulong address, ulong size)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,17 +2,17 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
{
|
{
|
||||||
struct ProcessCreationInfo
|
struct ProcessCreationInfo
|
||||||
{
|
{
|
||||||
public string Name { get; private set; }
|
public string Name { get; }
|
||||||
|
|
||||||
public int Category { get; private set; }
|
public int Category { get; }
|
||||||
public long TitleId { get; private set; }
|
public long TitleId { get; }
|
||||||
|
|
||||||
public ulong CodeAddress { get; private set; }
|
public ulong CodeAddress { get; }
|
||||||
public int CodePagesCount { get; private set; }
|
public int CodePagesCount { get; }
|
||||||
|
|
||||||
public int MmuFlags { get; private set; }
|
public int MmuFlags { get; }
|
||||||
public int ResourceLimitHandle { get; private set; }
|
public int ResourceLimitHandle { get; }
|
||||||
public int PersonalMmHeapPagesCount { get; private set; }
|
public int PersonalMmHeapPagesCount { get; }
|
||||||
|
|
||||||
public ProcessCreationInfo(
|
public ProcessCreationInfo(
|
||||||
string name,
|
string name,
|
||||||
|
|
|
@ -21,10 +21,10 @@ namespace Ryujinx.HLE.HOS.Kernel
|
||||||
|
|
||||||
private struct HleIpcMessage
|
private struct HleIpcMessage
|
||||||
{
|
{
|
||||||
public KThread Thread { get; private set; }
|
public KThread Thread { get; }
|
||||||
public KSession Session { get; private set; }
|
public KSession Session { get; }
|
||||||
public IpcMessage Message { get; private set; }
|
public IpcMessage Message { get; }
|
||||||
public long MessagePtr { get; private set; }
|
public long MessagePtr { get; }
|
||||||
|
|
||||||
public HleIpcMessage(
|
public HleIpcMessage(
|
||||||
KThread thread,
|
KThread thread,
|
||||||
|
|
|
@ -7,14 +7,14 @@ namespace Ryujinx.HLE.HOS
|
||||||
{
|
{
|
||||||
class ServiceCtx
|
class ServiceCtx
|
||||||
{
|
{
|
||||||
public Switch Device { get; private set; }
|
public Switch Device { get; }
|
||||||
public KProcess Process { get; private set; }
|
public KProcess Process { get; }
|
||||||
public MemoryManager Memory { get; private set; }
|
public MemoryManager Memory { get; }
|
||||||
public KSession Session { get; private set; }
|
public KSession Session { get; }
|
||||||
public IpcMessage Request { get; private set; }
|
public IpcMessage Request { get; }
|
||||||
public IpcMessage Response { get; private set; }
|
public IpcMessage Response { get; }
|
||||||
public BinaryReader RequestData { get; private set; }
|
public BinaryReader RequestData { get; }
|
||||||
public BinaryWriter ResponseData { get; private set; }
|
public BinaryWriter ResponseData { get; }
|
||||||
|
|
||||||
public ServiceCtx(
|
public ServiceCtx(
|
||||||
Switch device,
|
Switch device,
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
|
||||||
|
|
||||||
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
|
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
|
||||||
|
|
||||||
public byte[] Data { get; private set; }
|
public byte[] Data { get; }
|
||||||
|
|
||||||
public IStorage(byte[] data)
|
public IStorage(byte[] data)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
Invalid = 0x20
|
Invalid = 0x20
|
||||||
}
|
}
|
||||||
|
|
||||||
public int SocketFd { get; private set; }
|
public int SocketFd { get; }
|
||||||
public BsdSocket Socket { get; private set; }
|
public BsdSocket Socket { get; }
|
||||||
public EventTypeMask InputEvents { get; private set; }
|
public EventTypeMask InputEvents { get; }
|
||||||
public EventTypeMask OutputEvents { get; private set; }
|
public EventTypeMask OutputEvents { get; }
|
||||||
|
|
||||||
public PollEvent(int socketFd, BsdSocket socket, EventTypeMask inputEvents, EventTypeMask outputEvents)
|
public PollEvent(int socketFd, BsdSocket socket, EventTypeMask inputEvents, EventTypeMask outputEvents)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
{
|
{
|
||||||
public struct DirectoryEntry
|
public struct DirectoryEntry
|
||||||
{
|
{
|
||||||
public string Path { get; private set; }
|
public string Path { get; }
|
||||||
public long Size { get; private set; }
|
public long Size { get; }
|
||||||
|
|
||||||
public DirectoryEntryType EntryType { get; set; }
|
public DirectoryEntryType EntryType { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
|
||||||
|
|
||||||
public event EventHandler<EventArgs> Disposed;
|
public event EventHandler<EventArgs> Disposed;
|
||||||
|
|
||||||
public string DirectoryPath { get; private set; }
|
public string DirectoryPath { get; }
|
||||||
|
|
||||||
private IFileSystemProvider _provider;
|
private IFileSystemProvider _provider;
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
|
||||||
|
|
||||||
public event EventHandler<EventArgs> Disposed;
|
public event EventHandler<EventArgs> Disposed;
|
||||||
|
|
||||||
public string HostPath { get; private set; }
|
public string HostPath { get; }
|
||||||
|
|
||||||
public IFile(Stream baseStream, string hostPath)
|
public IFile(Stream baseStream, string hostPath)
|
||||||
{
|
{
|
||||||
|
|
|
@ -50,9 +50,9 @@ namespace Ryujinx.HLE.HOS.Services.Ldr
|
||||||
|
|
||||||
class NrrInfo
|
class NrrInfo
|
||||||
{
|
{
|
||||||
public NrrHeader Header { get; private set; }
|
public NrrHeader Header { get; }
|
||||||
public List<byte[]> Hashes { get; private set; }
|
public List<byte[]> Hashes { get; }
|
||||||
public long NrrAddress { get; private set; }
|
public long NrrAddress { get; }
|
||||||
|
|
||||||
public NrrInfo(long nrrAddress, NrrHeader header, List<byte[]> hashes)
|
public NrrInfo(long nrrAddress, NrrHeader header, List<byte[]> hashes)
|
||||||
{
|
{
|
||||||
|
@ -64,14 +64,14 @@ namespace Ryujinx.HLE.HOS.Services.Ldr
|
||||||
|
|
||||||
class NroInfo
|
class NroInfo
|
||||||
{
|
{
|
||||||
public NxRelocatableObject Executable { get; private set; }
|
public NxRelocatableObject Executable { get; }
|
||||||
|
|
||||||
public byte[] Hash { get; private set; }
|
public byte[] Hash { get; }
|
||||||
public ulong NroAddress { get; private set; }
|
public ulong NroAddress { get; }
|
||||||
public ulong NroSize { get; private set; }
|
public ulong NroSize { get; }
|
||||||
public ulong BssAddress { get; private set; }
|
public ulong BssAddress { get; }
|
||||||
public ulong BssSize { get; private set; }
|
public ulong BssSize { get; }
|
||||||
public ulong TotalSize { get; private set; }
|
public ulong TotalSize { get; }
|
||||||
public ulong NroMappedAddress { get; set; }
|
public ulong NroMappedAddress { get; set; }
|
||||||
|
|
||||||
public NroInfo(
|
public NroInfo(
|
||||||
|
|
|
@ -32,7 +32,7 @@ namespace Ryujinx.HLE.HOS.Services.Nv
|
||||||
{ "/dev/nvmap", ProcessIoctlNvMap }
|
{ "/dev/nvmap", ProcessIoctlNvMap }
|
||||||
};
|
};
|
||||||
|
|
||||||
public static GlobalStateTable Fds { get; private set; }
|
public static GlobalStateTable Fds { get; }
|
||||||
|
|
||||||
private KEvent _event;
|
private KEvent _event;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ namespace Ryujinx.HLE.HOS.Services.Nv
|
||||||
{
|
{
|
||||||
class NvFd
|
class NvFd
|
||||||
{
|
{
|
||||||
public string Name { get; private set; }
|
public string Name { get; }
|
||||||
|
|
||||||
public NvFd(string name)
|
public NvFd(string name)
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,12 +5,12 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvGpuAS
|
||||||
{
|
{
|
||||||
class NvGpuASCtx
|
class NvGpuASCtx
|
||||||
{
|
{
|
||||||
public NvGpuVmm Vmm { get; private set; }
|
public NvGpuVmm Vmm { get; }
|
||||||
|
|
||||||
private class Range
|
private class Range
|
||||||
{
|
{
|
||||||
public ulong Start { get; private set; }
|
public ulong Start { get; }
|
||||||
public ulong End { get; private set; }
|
public ulong End { get; }
|
||||||
|
|
||||||
public Range(long position, long size)
|
public Range(long position, long size)
|
||||||
{
|
{
|
||||||
|
@ -21,8 +21,8 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvGpuAS
|
||||||
|
|
||||||
private class MappedMemory : Range
|
private class MappedMemory : Range
|
||||||
{
|
{
|
||||||
public long PhysicalAddress { get; private set; }
|
public long PhysicalAddress { get; }
|
||||||
public bool VaAllocated { get; private set; }
|
public bool VaAllocated { get; }
|
||||||
|
|
||||||
public MappedMemory(
|
public MappedMemory(
|
||||||
long position,
|
long position,
|
||||||
|
|
|
@ -5,9 +5,9 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvHostCtrl
|
||||||
public const int LocksCount = 16;
|
public const int LocksCount = 16;
|
||||||
public const int EventsCount = 64;
|
public const int EventsCount = 64;
|
||||||
|
|
||||||
public NvHostSyncpt Syncpt { get; private set; }
|
public NvHostSyncpt Syncpt { get; }
|
||||||
|
|
||||||
public NvHostEvent[] Events { get; private set; }
|
public NvHostEvent[] Events { get; }
|
||||||
|
|
||||||
public NvHostCtrlUserCtx()
|
public NvHostCtrlUserCtx()
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi
|
||||||
{
|
{
|
||||||
class Display
|
class Display
|
||||||
{
|
{
|
||||||
public string Name { get; private set; }
|
public string Name { get; }
|
||||||
|
|
||||||
public Display(string name)
|
public Display(string name)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,20 +4,20 @@ namespace Ryujinx.HLE.HOS.Services.Android
|
||||||
{
|
{
|
||||||
struct GbpBuffer
|
struct GbpBuffer
|
||||||
{
|
{
|
||||||
public int Magic { get; private set; }
|
public int Magic { get; }
|
||||||
public int Width { get; private set; }
|
public int Width { get; }
|
||||||
public int Height { get; private set; }
|
public int Height { get; }
|
||||||
public int Stride { get; private set; }
|
public int Stride { get; }
|
||||||
public int Format { get; private set; }
|
public int Format { get; }
|
||||||
public int Usage { get; private set; }
|
public int Usage { get; }
|
||||||
|
|
||||||
public int Pid { get; private set; }
|
public int Pid { get; }
|
||||||
public int RefCount { get; private set; }
|
public int RefCount { get; }
|
||||||
|
|
||||||
public int FdsCount { get; private set; }
|
public int FdsCount { get; }
|
||||||
public int IntsCount { get; private set; }
|
public int IntsCount { get; }
|
||||||
|
|
||||||
public byte[] RawData { get; private set; }
|
public byte[] RawData { get; }
|
||||||
|
|
||||||
public int Size => RawData.Length + 10 * 4;
|
public int Size => RawData.Length + 10 * 4;
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ namespace Ryujinx.HLE.HOS.SystemState
|
||||||
|
|
||||||
public FocusState FocusState { get; private set; }
|
public FocusState FocusState { get; private set; }
|
||||||
|
|
||||||
public KEvent MessageEvent { get; private set; }
|
public KEvent MessageEvent { get; }
|
||||||
|
|
||||||
public AppletStateMgr(Horizon system)
|
public AppletStateMgr(Horizon system)
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,9 +7,9 @@ namespace Ryujinx.HLE.HOS.SystemState
|
||||||
{
|
{
|
||||||
private static readonly DateTime Epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
|
private static readonly DateTime Epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
|
||||||
|
|
||||||
public UInt128 Uuid { get; private set; }
|
public UInt128 Uuid { get; }
|
||||||
|
|
||||||
public string Name { get; private set; }
|
public string Name { get; }
|
||||||
|
|
||||||
public long LastModifiedTimestamp { get; private set; }
|
public long LastModifiedTimestamp { get; private set; }
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@ namespace Ryujinx.HLE.Loaders.Elf
|
||||||
{
|
{
|
||||||
struct ElfDynamic
|
struct ElfDynamic
|
||||||
{
|
{
|
||||||
public ElfDynamicTag Tag { get; private set; }
|
public ElfDynamicTag Tag { get; }
|
||||||
|
|
||||||
public long Value { get; private set; }
|
public long Value { get; }
|
||||||
|
|
||||||
public ElfDynamic(ElfDynamicTag tag, long value)
|
public ElfDynamic(ElfDynamicTag tag, long value)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,11 +2,11 @@ namespace Ryujinx.HLE.Loaders.Elf
|
||||||
{
|
{
|
||||||
struct ElfSymbol
|
struct ElfSymbol
|
||||||
{
|
{
|
||||||
public string Name { get; private set; }
|
public string Name { get; }
|
||||||
|
|
||||||
public ElfSymbolType Type { get; private set; }
|
public ElfSymbolType Type { get; }
|
||||||
public ElfSymbolBinding Binding { get; private set; }
|
public ElfSymbolBinding Binding { get; }
|
||||||
public ElfSymbolVisibility Visibility { get; private set; }
|
public ElfSymbolVisibility Visibility { get; }
|
||||||
|
|
||||||
public bool IsFuncOrObject =>
|
public bool IsFuncOrObject =>
|
||||||
Type == ElfSymbolType.SttFunc ||
|
Type == ElfSymbolType.SttFunc ||
|
||||||
|
@ -16,9 +16,9 @@ namespace Ryujinx.HLE.Loaders.Elf
|
||||||
Binding == ElfSymbolBinding.StbGlobal ||
|
Binding == ElfSymbolBinding.StbGlobal ||
|
||||||
Binding == ElfSymbolBinding.StbWeak;
|
Binding == ElfSymbolBinding.StbWeak;
|
||||||
|
|
||||||
public int ShIdx { get; private set; }
|
public int ShIdx { get; }
|
||||||
public long Value { get; private set; }
|
public long Value { get; }
|
||||||
public long Size { get; private set; }
|
public long Size { get; }
|
||||||
|
|
||||||
public ElfSymbol(
|
public ElfSymbol(
|
||||||
string name,
|
string name,
|
||||||
|
|
|
@ -5,39 +5,39 @@ namespace Ryujinx.HLE.Loaders.Executables
|
||||||
{
|
{
|
||||||
class KernelInitialProcess : IExecutable
|
class KernelInitialProcess : IExecutable
|
||||||
{
|
{
|
||||||
public string Name { get; private set; }
|
public string Name { get; }
|
||||||
|
|
||||||
public long TitleId { get; private set; }
|
public long TitleId { get; }
|
||||||
|
|
||||||
public int ProcessCategory { get; private set; }
|
public int ProcessCategory { get; }
|
||||||
|
|
||||||
public byte MainThreadPriority { get; private set; }
|
public byte MainThreadPriority { get; }
|
||||||
public byte DefaultProcessorId { get; private set; }
|
public byte DefaultProcessorId { get; }
|
||||||
|
|
||||||
public bool Is64Bits { get; private set; }
|
public bool Is64Bits { get; }
|
||||||
public bool Addr39Bits { get; private set; }
|
public bool Addr39Bits { get; }
|
||||||
public bool IsService { get; private set; }
|
public bool IsService { get; }
|
||||||
|
|
||||||
public byte[] Text { get; private set; }
|
public byte[] Text { get; }
|
||||||
public byte[] Ro { get; private set; }
|
public byte[] Ro { get; }
|
||||||
public byte[] Data { get; private set; }
|
public byte[] Data { get; }
|
||||||
|
|
||||||
public int TextOffset { get; private set; }
|
public int TextOffset { get; }
|
||||||
public int RoOffset { get; private set; }
|
public int RoOffset { get; }
|
||||||
public int DataOffset { get; private set; }
|
public int DataOffset { get; }
|
||||||
public int BssOffset { get; private set; }
|
public int BssOffset { get; }
|
||||||
public int BssSize { get; private set; }
|
public int BssSize { get; }
|
||||||
|
|
||||||
public int MainThreadStackSize { get; private set; }
|
public int MainThreadStackSize { get; }
|
||||||
|
|
||||||
public int[] Capabilities { get; private set; }
|
public int[] Capabilities { get; }
|
||||||
|
|
||||||
private struct SegmentHeader
|
private struct SegmentHeader
|
||||||
{
|
{
|
||||||
public int Offset { get; private set; }
|
public int Offset { get; }
|
||||||
public int DecompressedSize { get; private set; }
|
public int DecompressedSize { get; }
|
||||||
public int CompressedSize { get; private set; }
|
public int CompressedSize { get; }
|
||||||
public int Attribute { get; private set; }
|
public int Attribute { get; }
|
||||||
|
|
||||||
public SegmentHeader(
|
public SegmentHeader(
|
||||||
int offset,
|
int offset,
|
||||||
|
|
|
@ -4,20 +4,20 @@ namespace Ryujinx.HLE.Loaders.Executables
|
||||||
{
|
{
|
||||||
class NxRelocatableObject : IExecutable
|
class NxRelocatableObject : IExecutable
|
||||||
{
|
{
|
||||||
public byte[] Text { get; private set; }
|
public byte[] Text { get; }
|
||||||
public byte[] Ro { get; private set; }
|
public byte[] Ro { get; }
|
||||||
public byte[] Data { get; private set; }
|
public byte[] Data { get; }
|
||||||
|
|
||||||
public int Mod0Offset { get; private set; }
|
public int Mod0Offset { get; }
|
||||||
public int TextOffset { get; private set; }
|
public int TextOffset { get; }
|
||||||
public int RoOffset { get; private set; }
|
public int RoOffset { get; }
|
||||||
public int DataOffset { get; private set; }
|
public int DataOffset { get; }
|
||||||
public int BssSize { get; private set; }
|
public int BssSize { get; }
|
||||||
|
|
||||||
public int BssOffset => DataOffset + Data.Length;
|
public int BssOffset => DataOffset + Data.Length;
|
||||||
|
|
||||||
public ulong SourceAddress { get; private set; }
|
public ulong SourceAddress { get; }
|
||||||
public ulong BssAddress { get; private set; }
|
public ulong BssAddress { get; }
|
||||||
|
|
||||||
public NxRelocatableObject(Stream input, ulong sourceAddress = 0, ulong bssAddress = 0)
|
public NxRelocatableObject(Stream input, ulong sourceAddress = 0, ulong bssAddress = 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,14 +6,14 @@ namespace Ryujinx.HLE.Loaders.Executables
|
||||||
{
|
{
|
||||||
class NxStaticObject : IExecutable
|
class NxStaticObject : IExecutable
|
||||||
{
|
{
|
||||||
public byte[] Text { get; private set; }
|
public byte[] Text { get; }
|
||||||
public byte[] Ro { get; private set; }
|
public byte[] Ro { get; }
|
||||||
public byte[] Data { get; private set; }
|
public byte[] Data { get; }
|
||||||
|
|
||||||
public int TextOffset { get; private set; }
|
public int TextOffset { get; }
|
||||||
public int RoOffset { get; private set; }
|
public int RoOffset { get; }
|
||||||
public int DataOffset { get; private set; }
|
public int DataOffset { get; }
|
||||||
public int BssSize { get; private set; }
|
public int BssSize { get; }
|
||||||
|
|
||||||
public int BssOffset => DataOffset + Data.Length;
|
public int BssOffset => DataOffset + Data.Length;
|
||||||
|
|
||||||
|
|
|
@ -7,13 +7,13 @@ namespace Ryujinx.HLE.Loaders.Npdm
|
||||||
{
|
{
|
||||||
private const int Aci0Magic = 'A' << 0 | 'C' << 8 | 'I' << 16 | '0' << 24;
|
private const int Aci0Magic = 'A' << 0 | 'C' << 8 | 'I' << 16 | '0' << 24;
|
||||||
|
|
||||||
public long TitleId { get; private set; }
|
public long TitleId { get; }
|
||||||
|
|
||||||
public int FsVersion { get; private set; }
|
public int FsVersion { get; }
|
||||||
public ulong FsPermissionsBitmask { get; private set; }
|
public ulong FsPermissionsBitmask { get; }
|
||||||
|
|
||||||
public ServiceAccessControl ServiceAccessControl { get; private set; }
|
public ServiceAccessControl ServiceAccessControl { get; }
|
||||||
public KernelAccessControl KernelAccessControl { get; private set; }
|
public KernelAccessControl KernelAccessControl { get; }
|
||||||
|
|
||||||
public Aci0(Stream stream, int offset)
|
public Aci0(Stream stream, int offset)
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,17 +7,17 @@ namespace Ryujinx.HLE.Loaders.Npdm
|
||||||
{
|
{
|
||||||
private const int AcidMagic = 'A' << 0 | 'C' << 8 | 'I' << 16 | 'D' << 24;
|
private const int AcidMagic = 'A' << 0 | 'C' << 8 | 'I' << 16 | 'D' << 24;
|
||||||
|
|
||||||
public byte[] Rsa2048Signature { get; private set; }
|
public byte[] Rsa2048Signature { get; }
|
||||||
public byte[] Rsa2048Modulus { get; private set; }
|
public byte[] Rsa2048Modulus { get; }
|
||||||
public int Unknown1 { get; private set; }
|
public int Unknown1 { get; }
|
||||||
public int Flags { get; private set; }
|
public int Flags { get; }
|
||||||
|
|
||||||
public long TitleIdRangeMin { get; private set; }
|
public long TitleIdRangeMin { get; }
|
||||||
public long TitleIdRangeMax { get; private set; }
|
public long TitleIdRangeMax { get; }
|
||||||
|
|
||||||
public FsAccessControl FsAccessControl { get; private set; }
|
public FsAccessControl FsAccessControl { get; }
|
||||||
public ServiceAccessControl ServiceAccessControl { get; private set; }
|
public ServiceAccessControl ServiceAccessControl { get; }
|
||||||
public KernelAccessControl KernelAccessControl { get; private set; }
|
public KernelAccessControl KernelAccessControl { get; }
|
||||||
|
|
||||||
public Acid(Stream stream, int offset)
|
public Acid(Stream stream, int offset)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,12 +4,12 @@ namespace Ryujinx.HLE.Loaders.Npdm
|
||||||
{
|
{
|
||||||
class FsAccessControl
|
class FsAccessControl
|
||||||
{
|
{
|
||||||
public int Version { get; private set; }
|
public int Version { get; }
|
||||||
public ulong PermissionsBitmask { get; private set; }
|
public ulong PermissionsBitmask { get; }
|
||||||
public int Unknown1 { get; private set; }
|
public int Unknown1 { get; }
|
||||||
public int Unknown2 { get; private set; }
|
public int Unknown2 { get; }
|
||||||
public int Unknown3 { get; private set; }
|
public int Unknown3 { get; }
|
||||||
public int Unknown4 { get; private set; }
|
public int Unknown4 { get; }
|
||||||
|
|
||||||
public FsAccessControl(Stream stream, int offset, int size)
|
public FsAccessControl(Stream stream, int offset, int size)
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,8 +6,8 @@ namespace Ryujinx.HLE.Loaders.Npdm
|
||||||
{
|
{
|
||||||
class FsAccessHeader
|
class FsAccessHeader
|
||||||
{
|
{
|
||||||
public int Version { get; private set; }
|
public int Version { get; }
|
||||||
public ulong PermissionsBitmask { get; private set; }
|
public ulong PermissionsBitmask { get; }
|
||||||
|
|
||||||
public FsAccessHeader(Stream stream, int offset, int size)
|
public FsAccessHeader(Stream stream, int offset, int size)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace Ryujinx.HLE.Loaders.Npdm
|
||||||
{
|
{
|
||||||
class KernelAccessControl
|
class KernelAccessControl
|
||||||
{
|
{
|
||||||
public int[] Capabilities { get; private set; }
|
public int[] Capabilities { get; }
|
||||||
|
|
||||||
public KernelAccessControl(Stream stream, int offset, int size)
|
public KernelAccessControl(Stream stream, int offset, int size)
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,18 +11,18 @@ namespace Ryujinx.HLE.Loaders.Npdm
|
||||||
{
|
{
|
||||||
private const int MetaMagic = 'M' << 0 | 'E' << 8 | 'T' << 16 | 'A' << 24;
|
private const int MetaMagic = 'M' << 0 | 'E' << 8 | 'T' << 16 | 'A' << 24;
|
||||||
|
|
||||||
public byte MmuFlags { get; private set; }
|
public byte MmuFlags { get; }
|
||||||
public bool Is64Bits { get; private set; }
|
public bool Is64Bits { get; }
|
||||||
public byte MainThreadPriority { get; private set; }
|
public byte MainThreadPriority { get; }
|
||||||
public byte DefaultCpuId { get; private set; }
|
public byte DefaultCpuId { get; }
|
||||||
public int PersonalMmHeapSize { get; private set; }
|
public int PersonalMmHeapSize { get; }
|
||||||
public int ProcessCategory { get; private set; }
|
public int ProcessCategory { get; }
|
||||||
public int MainThreadStackSize { get; private set; }
|
public int MainThreadStackSize { get; }
|
||||||
public string TitleName { get; private set; }
|
public string TitleName { get; }
|
||||||
public byte[] ProductCode { get; private set; }
|
public byte[] ProductCode { get; }
|
||||||
|
|
||||||
public Aci0 Aci0 { get; private set; }
|
public Aci0 Aci0 { get; }
|
||||||
public Acid Acid { get; private set; }
|
public Acid Acid { get; }
|
||||||
|
|
||||||
public Npdm(Stream stream)
|
public Npdm(Stream stream)
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,7 +7,7 @@ namespace Ryujinx.HLE.Loaders.Npdm
|
||||||
{
|
{
|
||||||
class ServiceAccessControl
|
class ServiceAccessControl
|
||||||
{
|
{
|
||||||
public IReadOnlyDictionary<string, bool> Services { get; private set; }
|
public IReadOnlyDictionary<string, bool> Services { get; }
|
||||||
|
|
||||||
public ServiceAccessControl(Stream stream, int offset, int size)
|
public ServiceAccessControl(Stream stream, int offset, int size)
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,23 +11,23 @@ namespace Ryujinx.HLE
|
||||||
{
|
{
|
||||||
public class Switch : IDisposable
|
public class Switch : IDisposable
|
||||||
{
|
{
|
||||||
internal IAalOutput AudioOut { get; private set; }
|
internal IAalOutput AudioOut { get; }
|
||||||
|
|
||||||
internal DeviceMemory Memory { get; private set; }
|
internal DeviceMemory Memory { get; }
|
||||||
|
|
||||||
internal NvGpu Gpu { get; private set; }
|
internal NvGpu Gpu { get; }
|
||||||
|
|
||||||
internal VirtualFileSystem FileSystem { get; private set; }
|
internal VirtualFileSystem FileSystem { get; }
|
||||||
|
|
||||||
public Horizon System { get; private set; }
|
public Horizon System { get; }
|
||||||
|
|
||||||
public PerformanceStatistics Statistics { get; private set; }
|
public PerformanceStatistics Statistics { get; }
|
||||||
|
|
||||||
public Hid Hid { get; private set; }
|
public Hid Hid { get; }
|
||||||
|
|
||||||
public bool EnableDeviceVsync { get; set; } = true;
|
public bool EnableDeviceVsync { get; set; } = true;
|
||||||
|
|
||||||
public AutoResetEvent VsyncEvent { get; private set; }
|
public AutoResetEvent VsyncEvent { get; }
|
||||||
|
|
||||||
public event EventHandler Finish;
|
public event EventHandler Finish;
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@ namespace Ryujinx.HLE.Utilities
|
||||||
{
|
{
|
||||||
public struct UInt128
|
public struct UInt128
|
||||||
{
|
{
|
||||||
public long High { get; private set; }
|
public long High { get; }
|
||||||
public long Low { get; private set; }
|
public long Low { get; }
|
||||||
|
|
||||||
public UInt128(long low, long high)
|
public UInt128(long low, long high)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue