2019-11-14 05:18:44 +00:00
|
|
|
|
using Ryujinx.HLE.HOS.Services.Am.AppletAE;
|
|
|
|
|
using System;
|
2020-04-03 00:10:02 +00:00
|
|
|
|
using System.Runtime.InteropServices;
|
2019-11-14 05:18:44 +00:00
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Applets
|
|
|
|
|
{
|
|
|
|
|
interface IApplet
|
|
|
|
|
{
|
|
|
|
|
event EventHandler AppletStateChanged;
|
|
|
|
|
|
2019-11-18 11:16:26 +00:00
|
|
|
|
ResultCode Start(AppletSession normalSession,
|
|
|
|
|
AppletSession interactiveSession);
|
|
|
|
|
|
2019-11-14 05:18:44 +00:00
|
|
|
|
ResultCode GetResult();
|
2020-04-03 00:10:02 +00:00
|
|
|
|
|
|
|
|
|
static T ReadStruct<T>(ReadOnlySpan<byte> data) where T : struct
|
|
|
|
|
{
|
|
|
|
|
return MemoryMarshal.Cast<byte, T>(data)[0];
|
|
|
|
|
}
|
2019-11-14 05:18:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|