mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-27 04:05:45 +00:00
4da44e09cb
* Make all structs readonly when applicable. It should reduce amount of needless defensive copies * Make structs with trivial boilerplate equality code record structs * Remove unnecessary readonly modifiers from TextureCreateInfo * Make BitMap structs readonly too
37 lines
No EOL
1.1 KiB
C#
37 lines
No EOL
1.1 KiB
C#
namespace Ryujinx.HLE.HOS.Kernel.Process
|
|
{
|
|
readonly struct ProcessCreationInfo
|
|
{
|
|
public string Name { get; }
|
|
|
|
public int Version { get; }
|
|
public ulong TitleId { get; }
|
|
|
|
public ulong CodeAddress { get; }
|
|
public int CodePagesCount { get; }
|
|
|
|
public ProcessCreationFlags Flags { get; }
|
|
public int ResourceLimitHandle { get; }
|
|
public int SystemResourcePagesCount { get; }
|
|
|
|
public ProcessCreationInfo(
|
|
string name,
|
|
int version,
|
|
ulong titleId,
|
|
ulong codeAddress,
|
|
int codePagesCount,
|
|
ProcessCreationFlags flags,
|
|
int resourceLimitHandle,
|
|
int systemResourcePagesCount)
|
|
{
|
|
Name = name;
|
|
Version = version;
|
|
TitleId = titleId;
|
|
CodeAddress = codeAddress;
|
|
CodePagesCount = codePagesCount;
|
|
Flags = flags;
|
|
ResourceLimitHandle = resourceLimitHandle;
|
|
SystemResourcePagesCount = systemResourcePagesCount;
|
|
}
|
|
}
|
|
} |