mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-10 04:39:11 +00:00
More structs
This commit is contained in:
parent
75a425afbf
commit
012b85a481
5 changed files with 64 additions and 1 deletions
11
src/Ryujinx.Horizon/Sdk/Am/AppletAttribute.cs
Normal file
11
src/Ryujinx.Horizon/Sdk/Am/AppletAttribute.cs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
30
src/Ryujinx.Horizon/Sdk/Am/AppletId.cs
Normal file
30
src/Ryujinx.Horizon/Sdk/Am/AppletId.cs
Normal 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,
|
||||||
|
}
|
||||||
|
}
|
|
@ -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,
|
||||||
|
|
11
src/Ryujinx.Horizon/Sdk/Am/AppletProcessLaunchReason.cs
Normal file
11
src/Ryujinx.Horizon/Sdk/Am/AppletProcessLaunchReason.cs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
11
src/Ryujinx.Horizon/Sdk/Am/LibraryAppletMode.cs
Normal file
11
src/Ryujinx.Horizon/Sdk/Am/LibraryAppletMode.cs
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
namespace Ryujinx.Horizon.Sdk.Am
|
||||||
|
{
|
||||||
|
public enum LibraryAppletMode : uint
|
||||||
|
{
|
||||||
|
AllForeground,
|
||||||
|
PartialForeground,
|
||||||
|
NoUi,
|
||||||
|
PartialForegroundWithIndirectDisplay,
|
||||||
|
AllForegroundInitiallyHidden
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue