diff options
| author | mageven <62494521+mageven@users.noreply.github.com> | 2020-04-03 12:23:06 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-03 17:53:06 +1100 |
| commit | 4d93f97408a2ab36b45c1027f6230a941a7297ea (patch) | |
| tree | ca089d6ea1033256311dfe713949611abaecd40d /Ryujinx.HLE/HOS/Applets/IApplet.cs | |
| parent | e93ca84b14cc325364f1ccc45a6e8622978e959d (diff) | |
Revert SwKbd Applet ReadStruct and fix IApplet's ReadStruct to catch (#1087)
error at compile time
Diffstat (limited to 'Ryujinx.HLE/HOS/Applets/IApplet.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Applets/IApplet.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/Applets/IApplet.cs b/Ryujinx.HLE/HOS/Applets/IApplet.cs index b10ede68..a29eeb84 100644 --- a/Ryujinx.HLE/HOS/Applets/IApplet.cs +++ b/Ryujinx.HLE/HOS/Applets/IApplet.cs @@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Applets ResultCode GetResult(); - static T ReadStruct<T>(ReadOnlySpan<byte> data) where T : struct + static T ReadStruct<T>(ReadOnlySpan<byte> data) where T : unmanaged { return MemoryMarshal.Cast<byte, T>(data)[0]; } |
