2019-11-13 21:18:44 -08:00
|
|
|
|
using Ryujinx.HLE.HOS.Services.Am.AppletAE;
|
2021-10-12 12:54:21 -07:00
|
|
|
|
using Ryujinx.HLE.Ui;
|
|
|
|
|
using Ryujinx.Memory;
|
2019-11-13 21:18:44 -08:00
|
|
|
|
using System;
|
2020-04-02 17:10:02 -07:00
|
|
|
|
using System.Runtime.InteropServices;
|
2019-11-13 21:18:44 -08:00
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Applets
|
|
|
|
|
{
|
|
|
|
|
interface IApplet
|
|
|
|
|
{
|
|
|
|
|
event EventHandler AppletStateChanged;
|
|
|
|
|
|
2019-11-18 03:16:26 -08:00
|
|
|
|
ResultCode Start(AppletSession normalSession,
|
|
|
|
|
AppletSession interactiveSession);
|
|
|
|
|
|
2019-11-13 21:18:44 -08:00
|
|
|
|
ResultCode GetResult();
|
2020-04-02 17:10:02 -07:00
|
|
|
|
|
2021-10-12 12:54:21 -07:00
|
|
|
|
bool DrawTo(RenderingSurfaceInfo surfaceInfo, IVirtualMemoryManager destination, ulong position)
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-02 23:53:06 -07:00
|
|
|
|
static T ReadStruct<T>(ReadOnlySpan<byte> data) where T : unmanaged
|
2020-04-02 17:10:02 -07:00
|
|
|
|
{
|
|
|
|
|
return MemoryMarshal.Cast<byte, T>(data)[0];
|
|
|
|
|
}
|
2019-11-13 21:18:44 -08:00
|
|
|
|
}
|
|
|
|
|
}
|