Skip to content

Commit

Permalink
Add message to ArgumentException
Browse files Browse the repository at this point in the history
  • Loading branch information
MutantAura committed Apr 11, 2024
1 parent 617d0b0 commit ce3dabe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ryujinx.Common/GraphicsDriver/NVDriverHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static void SetControlOption(NvapiSettingId id, bool enabled)
{
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()
Expand Down

0 comments on commit ce3dabe

Please sign in to comment.