mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-07-02 17:10:46 -07:00
Revert SwKbd Applet ReadStruct and fix IApplet's ReadStruct to catch (#1087)
error at compile time
This commit is contained in:
@ -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];
|
||||
}
|
||||
|
Reference in New Issue
Block a user