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