Revert SwKbd Applet ReadStruct and fix IApplet's ReadStruct to catch (#1087)
error at compile time
This commit is contained in:
parent
e93ca84b14
commit
4d93f97408
2 changed files with 17 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue