mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-06-01 18:09:15 +00:00
* Migrate friends service to new IPC * Add a note that the pointer buffer size and domain counts are wrong * Wrong length * Format whitespace * PR feedback * Fill in structs from PR feedback * Missed that one * Somehow forgot to save that one * Fill in enums from PR review * Language enum, NotificationTime * Format whitespace * Fix the warning
60 lines
1.1 KiB
C#
60 lines
1.1 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Ryujinx.Horizon.Sdk.Settings.System
|
|
{
|
|
[Flags]
|
|
enum TvFlag : uint
|
|
{
|
|
Allows4k = 1 << 0,
|
|
Allows3d = 1 << 1,
|
|
AllowsCec = 1 << 2,
|
|
PreventsScreenBurnIn = 1 << 3,
|
|
}
|
|
|
|
enum TvResolution : uint
|
|
{
|
|
Auto,
|
|
At1080p,
|
|
At720p,
|
|
At480p,
|
|
}
|
|
|
|
enum HdmiContentType : uint
|
|
{
|
|
None,
|
|
Graphics,
|
|
Cinema,
|
|
Photo,
|
|
Game,
|
|
}
|
|
|
|
enum RgbRange : uint
|
|
{
|
|
Auto,
|
|
Full,
|
|
Limited,
|
|
}
|
|
|
|
enum CmuMode : uint
|
|
{
|
|
None,
|
|
ColorInvert,
|
|
HighContrast,
|
|
GrayScale,
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential, Size = 0x20, Pack = 0x4)]
|
|
struct TvSettings
|
|
{
|
|
public TvFlag Flags;
|
|
public TvResolution TvResolution;
|
|
public HdmiContentType HdmiContentType;
|
|
public RgbRange RgbRange;
|
|
public CmuMode CmuMode;
|
|
public float TvUnderscan;
|
|
public float TvGamma;
|
|
public float ContrastRatio;
|
|
}
|
|
}
|