aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Horizon/Sdk/Settings/System/SleepSettings.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Horizon/Sdk/Settings/System/SleepSettings.cs')
-rw-r--r--src/Ryujinx.Horizon/Sdk/Settings/System/SleepSettings.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/Ryujinx.Horizon/Sdk/Settings/System/SleepSettings.cs b/src/Ryujinx.Horizon/Sdk/Settings/System/SleepSettings.cs
new file mode 100644
index 00000000..7493c677
--- /dev/null
+++ b/src/Ryujinx.Horizon/Sdk/Settings/System/SleepSettings.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace Ryujinx.Horizon.Sdk.Settings.System
+{
+ [Flags]
+ enum SleepFlag : uint
+ {
+ SleepsWhilePlayingMedia = 1 << 0,
+ WakesAtPowerStateChange = 1 << 1,
+ }
+
+ enum HandheldSleepPlan : uint
+ {
+ At1Min,
+ At3Min,
+ At5Min,
+ At10Min,
+ At30Min,
+ Never,
+ }
+
+ enum ConsoleSleepPlan : uint
+ {
+ At1Hour,
+ At2Hour,
+ At3Hour,
+ At6Hour,
+ At12Hour,
+ Never,
+ }
+
+ [StructLayout(LayoutKind.Sequential, Size = 0xC, Pack = 0x4)]
+ struct SleepSettings
+ {
+ public SleepFlag Flags;
+ public HandheldSleepPlan HandheldSleepPlan;
+ public ConsoleSleepPlan ConsoleSleepPlan;
+ }
+}