diff --git a/src/Ryujinx.Common/GraphicsDriver/NVAPI/Nvapi.cs b/src/Ryujinx.Common/GraphicsDriver/NVAPI/Nvapi.cs index 5b28d3b9fb..3450b230b2 100644 --- a/src/Ryujinx.Common/GraphicsDriver/NVAPI/Nvapi.cs +++ b/src/Ryujinx.Common/GraphicsDriver/NVAPI/Nvapi.cs @@ -1,6 +1,6 @@ namespace Ryujinx.Common.GraphicsDriver.NVAPI { - enum NvapiSettingID : uint + enum NvapiSettingId : uint { OglThreadControlId = 0x20C1221E, OglCplPreferDxPresentId = 0x20D690F8, diff --git a/src/Ryujinx.Common/GraphicsDriver/NVAPI/NvdrsSetting.cs b/src/Ryujinx.Common/GraphicsDriver/NVAPI/NvdrsSetting.cs index 9e355c33c9..5942bf1af8 100644 --- a/src/Ryujinx.Common/GraphicsDriver/NVAPI/NvdrsSetting.cs +++ b/src/Ryujinx.Common/GraphicsDriver/NVAPI/NvdrsSetting.cs @@ -26,7 +26,7 @@ namespace Ryujinx.Common.GraphicsDriver.NVAPI [FieldOffset(0x4)] public NvapiUnicodeString SettingName; [FieldOffset(0x1004)] - public NvapiSettingID SettingId; + public NvapiSettingId SettingId; [FieldOffset(0x1008)] public NvdrsSettingType SettingType; [FieldOffset(0x100C)] diff --git a/src/Ryujinx.Common/GraphicsDriver/NVDriverHelper.cs b/src/Ryujinx.Common/GraphicsDriver/NVDriverHelper.cs index 0b984face5..a21770bafc 100644 --- a/src/Ryujinx.Common/GraphicsDriver/NVDriverHelper.cs +++ b/src/Ryujinx.Common/GraphicsDriver/NVDriverHelper.cs @@ -139,7 +139,7 @@ namespace Ryujinx.Common.GraphicsDriver NvdrsSetting setting = new() { Version = MakeVersion(1), - SettingId = NvapiSettingID.OglThreadControlId, + SettingId = NvapiSettingId.OglThreadControlId, SettingType = NvdrsSettingType.NvdrsDwordType, SettingLocation = NvdrsSettingLocation.NvdrsCurrentProfileLocation, IsCurrentPredefined = 0, @@ -149,7 +149,6 @@ namespace Ryujinx.Common.GraphicsDriver }; Check(NvAPI_DRS_SetSetting(_handle, _profileHandle, ref setting)); - Check(NvAPI_DRS_SaveSettings(_handle)); NvAPI_DRS_DestroySession(_handle); @@ -166,7 +165,7 @@ namespace Ryujinx.Common.GraphicsDriver NvdrsSetting setting = new() { Version = MakeVersion(1), - SettingId = NvapiSettingID.OglCplPreferDxPresentId, + SettingId = NvapiSettingId.OglCplPreferDxPresentId, SettingType = NvdrsSettingType.NvdrsDwordType, SettingLocation = NvdrsSettingLocation.NvdrsCurrentProfileLocation, IsCurrentPredefined = 0, @@ -176,7 +175,6 @@ namespace Ryujinx.Common.GraphicsDriver }; Check(NvAPI_DRS_SetSetting(_handle, _profileHandle, ref setting)); - Check(NvAPI_DRS_SaveSettings(_handle)); NvAPI_DRS_DestroySession(_handle);