mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-06-06 20:39:19 +00:00
Migrate friends service to new IPC (#6174)
* 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
This commit is contained in:
59
src/Ryujinx.Horizon/Sdk/Settings/System/TvSettings.cs
Normal file
59
src/Ryujinx.Horizon/Sdk/Settings/System/TvSettings.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user