From 32628bb8a3e6a5558f2ef88721e6d043e5c5b552 Mon Sep 17 00:00:00 2001 From: MutantAura Date: Thu, 11 Apr 2024 18:19:38 +0100 Subject: [PATCH] Add message to `ArgumentException` --- src/Ryujinx.Common/GraphicsDriver/NVDriverHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx.Common/GraphicsDriver/NVDriverHelper.cs b/src/Ryujinx.Common/GraphicsDriver/NVDriverHelper.cs index 3a69b5631..6fca32608 100644 --- a/src/Ryujinx.Common/GraphicsDriver/NVDriverHelper.cs +++ b/src/Ryujinx.Common/GraphicsDriver/NVDriverHelper.cs @@ -138,7 +138,7 @@ namespace Ryujinx.Common.GraphicsDriver { NvapiSettingId.OglThreadControlId => (uint)(enabled ? OglThreadControl.OglThreadControlEnable : OglThreadControl.OglThreadControlDisable), NvapiSettingId.OglCplPreferDxPresentId => (uint)(enabled ? OglCplDxPresent.OglCplPreferDxPresentEnable : OglCplDxPresent.OglCplPreferDxPresentDisable), - _ => throw new ArgumentException(), + _ => throw new ArgumentException($"Invalid NVAPI setting id: {id}"), }; NvdrsSetting setting = new()