aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Applets/IApplet.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Applets/IApplet.cs')
-rw-r--r--src/Ryujinx.HLE/HOS/Applets/IApplet.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Ryujinx.HLE/HOS/Applets/IApplet.cs b/src/Ryujinx.HLE/HOS/Applets/IApplet.cs
new file mode 100644
index 00000000..224d6787
--- /dev/null
+++ b/src/Ryujinx.HLE/HOS/Applets/IApplet.cs
@@ -0,0 +1,28 @@
+using Ryujinx.HLE.HOS.Services.Am.AppletAE;
+using Ryujinx.HLE.Ui;
+using Ryujinx.Memory;
+using System;
+using System.Runtime.InteropServices;
+
+namespace Ryujinx.HLE.HOS.Applets
+{
+ interface IApplet
+ {
+ event EventHandler AppletStateChanged;
+
+ ResultCode Start(AppletSession normalSession,
+ AppletSession interactiveSession);
+
+ ResultCode GetResult();
+
+ bool DrawTo(RenderingSurfaceInfo surfaceInfo, IVirtualMemoryManager destination, ulong position)
+ {
+ return false;
+ }
+
+ static T ReadStruct<T>(ReadOnlySpan<byte> data) where T : unmanaged
+ {
+ return MemoryMarshal.Cast<byte, T>(data)[0];
+ }
+ }
+}