Archived
1
0
Fork 0
forked from Mirror/Ryujinx
This repository has been archived on 2024-10-11. You can view files and clone it, but cannot push or open issues or pull requests.
jinx/Ryujinx.HLE/HOS/Applets/IApplet.cs

22 lines
518 B
C#
Raw Normal View History

using Ryujinx.HLE.HOS.Services.Am.AppletAE;
using System;
using System.Runtime.InteropServices;
namespace Ryujinx.HLE.HOS.Applets
{
interface IApplet
{
event EventHandler AppletStateChanged;
ResultCode Start(AppletSession normalSession,
AppletSession interactiveSession);
ResultCode GetResult();
static T ReadStruct<T>(ReadOnlySpan<byte> data) where T : struct
{
return MemoryMarshal.Cast<byte, T>(data)[0];
}
}
}