mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-09-19 22:28:55 +02:00
f41687f4c1
* Remove a bit of unsafety around
* Regenerate StructArrayHelpers with a max element value of 256
* hle: remove unsafe marker from all struct that had it
* hle: make SoftwareKeyboardRenderer.TryCopyTo safe
* hle: remove unsafety in NpadDevice and remove AllowUnsafeBlocks from csproj
* Revert "Regenerate StructArrayHelpers with a max element value of 256"
This reverts commit f32a6e5be0
.
* Introduce ByteArray of various size and use that instead of ArrayXXX to avoid stackoverflow in .NET runtime type resolution
* Use ByteArray more
* Add some missing spaces on Pack = 1 for various structs
* Fix broken logic for TryCopyTo
* Address gdkchan's comment
* Address gdkchan's comment
22 lines
638 B
C#
22 lines
638 B
C#
using Ryujinx.Common.Memory;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Ro
|
|
{
|
|
[StructLayout(LayoutKind.Sequential, Size = 0x350)]
|
|
struct NrrHeader
|
|
{
|
|
public uint Magic;
|
|
public uint KeyGeneration; // 9.0.0+
|
|
private Array8<byte> _reserved;
|
|
public NRRCertification Certification;
|
|
public ByteArray256 Signature;
|
|
public ulong TitleId;
|
|
public uint Size;
|
|
public byte Kind; // 7.0.0+
|
|
private Array3<byte> _reserved2;
|
|
public uint HashesOffset;
|
|
public uint HashesCount;
|
|
private Array8<byte> _reserved3;
|
|
}
|
|
}
|