Add message to ArgumentException

This commit is contained in:
MutantAura 2024-04-11 18:19:38 +01:00
parent 190791a1c9
commit 32628bb8a3

View file

@ -138,7 +138,7 @@ namespace Ryujinx.Common.GraphicsDriver
{ {
NvapiSettingId.OglThreadControlId => (uint)(enabled ? OglThreadControl.OglThreadControlEnable : OglThreadControl.OglThreadControlDisable), NvapiSettingId.OglThreadControlId => (uint)(enabled ? OglThreadControl.OglThreadControlEnable : OglThreadControl.OglThreadControlDisable),
NvapiSettingId.OglCplPreferDxPresentId => (uint)(enabled ? OglCplDxPresent.OglCplPreferDxPresentEnable : OglCplDxPresent.OglCplPreferDxPresentDisable), NvapiSettingId.OglCplPreferDxPresentId => (uint)(enabled ? OglCplDxPresent.OglCplPreferDxPresentEnable : OglCplDxPresent.OglCplPreferDxPresentDisable),
_ => throw new ArgumentException(), _ => throw new ArgumentException($"Invalid NVAPI setting id: {id}"),
}; };
NvdrsSetting setting = new() NvdrsSetting setting = new()