More structs

This commit is contained in:
Isaac Marovitz 2024-02-15 11:08:33 -05:00
parent 75a425afbf
commit 012b85a481
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1
5 changed files with 64 additions and 1 deletions

View file

@ -0,0 +1,11 @@
using System.Runtime.InteropServices;
namespace Ryujinx.Horizon.Sdk.Am
{
[StructLayout(LayoutKind.Sequential, Size = 0x80)]
public struct AppletAttribute
{
// TODO: Better way to rep single bit flag
public bool flag;
}
}

View file

@ -0,0 +1,30 @@
namespace Ryujinx.Horizon.Sdk.Am
{
public enum AppletId
{
None = 0x00,
Application = 0x01,
OverlayApplet = 0x02,
QLaunch = 0x03,
Starter = 0x04,
Auth = 0x0A,
Cabinet = 0x0B,
Controller = 0x0C,
DataErase = 0x0F,
Error = 0x0E,
NetConnect = 0x0F,
PlayerSelect = 0x10,
Swkbd = 0x11,
MiiEdit = 0x12,
Web = 0x13,
Shop = 0x14,
PhotoViewer = 0x15,
Set = 0x16,
OfflineWeb = 0x17,
LoginShare = 0x18,
WifiWebAuth = 0x19,
MyPage = 0x1A,
Gift = 0x1B,
UserMigration = 0x1C,
}
}

View file

@ -1,6 +1,6 @@
namespace Ryujinx.Horizon.Sdk.Am namespace Ryujinx.Horizon.Sdk.Am
{ {
public enum AppletMessage : byte public enum AppletMessage
{ {
None = 0, None = 0,
ChangeIntoForeground = 1, ChangeIntoForeground = 1,

View file

@ -0,0 +1,11 @@
using System.Runtime.InteropServices;
namespace Ryujinx.Horizon.Sdk.Am
{
[StructLayout(LayoutKind.Sequential, Size = 0x4)]
public struct AppletProcessLaunchReason
{
// TODO: Better way to rep single bit flag
public bool flag;
}
}

View file

@ -0,0 +1,11 @@
namespace Ryujinx.Horizon.Sdk.Am
{
public enum LibraryAppletMode : uint
{
AllForeground,
PartialForeground,
NoUi,
PartialForegroundWithIndirectDisplay,
AllForegroundInitiallyHidden
}
}